Boost logo

Boost :

Subject: Re: [boost] [container] varray aka static_vector
From: Andrew Hundt (athundt_at_[hidden])
Date: 2013-02-12 15:30:48


On Tue, Feb 12, 2013 at 3:02 PM, Krzysztof Czainski <1czajnik_at_[hidden]>wrote:

> 2013/2/12 Nevin Liber <nevin_at_[hidden]>
>
> > On 12 February 2013 09:10, Krzysztof Czainski <1czajnik_at_[hidden]>
> wrote:
> > > However, I'd rather there was a new member function for "noinit"
> > > pushing/resizing. Just like the emplace* family of functions was added,
> > > while the push* family was left alone ;-)
>
> Anyway, personally I'm only interested in features, that can be added for
> C++03 ;-) And noinit_push*/noinit_resize (enabled_if< is_pod<value_type> >)
> are things I have use cases for.

Could you explain a little more about why emplace_back is not sufficient? I
believe it includes rvalue reference emulation for C++03.

Cheers!
Andrew Hundt


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk