Subject: Re: [boost] [container] varray aka static_vector
From: Adam Wulkiewicz (adam.wulkiewicz_at_[hidden])
Date: 2013-02-11 18:53:51
Nevin Liber wrote:
> On 11 February 2013 14:32, Krzysztof Czainski <1czajnik_at_[hidden]> 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.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk