
13 Mar
2010
13 Mar
'10
4:47 p.m.
AMDG Cuneyt wrote:
Works like a charm, thanks a lot! I checked std::vector doc and saw that it's constructor is explicit vector ( size_type n, const T& value= T(), const Allocator& = Allocator() ); so you're right. Stupid question: if this is the constructor, how does std::vector<int> v = std::vector<int>(100) work?
The value and allocator parameters have defaults. In Christ, Steven Watanabe