
11 Feb
2013
11 Feb
'13
11:53 p.m.
Nevin Liber wrote:
On 11 February 2013 14:32, Krzysztof Czainski <1czajnik@gmail.com> wrote:
Now that I think of it, I wish there was a way to push an element to the back of varray without zero-initializing it (for PODs). But I think emplace_back should be consistent with other containers, so maybe some new member function can be added for this?
FYI: You can with the standard containers by using an allocator with a different method for construct.
If the library is written in C++11 or like Boost.Container emulates some mechanisms, in-place construction in allocator_traits in this case. Regards, Adam