Quote:Original post by rip-off
sweet.
specialised templates i assume.
didnt know that.
No. The sized constructor for std::vector<> looks like:
explict vector(size_type n, const T & value = T(), const Allocator & allocator = Allocator());
The vector is constructed with n elements copy constructed from value. When no value is specified, the default argument used is T(), which in the case of T being int, turns into 0.