
1 Feb
2013
1 Feb
'13
6:53 p.m.
Krzysztof Czainski wrote:
Although, now that I think of 0-arg emplace_back(), that doesn't value-initialize types with a trivial constructor - does vector work like this too? If not, then it's a good argument towards the name varray ;-)
After some thinking we decided that elements should be initialized because this is what the user probably expects. This is true for all varray methods/ctors constructing values using default ctor. Please check the newest version. In the future we may allow disabling it e.g. by use of traits. Regards, Adam