Boost logo

Boost :

Subject: Re: [boost] [container] varray aka static_vector
From: Krzysztof Czainski (1czajnik_at_[hidden])
Date: 2013-02-12 15:02:31


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 ;-)
> >
>
> Do you also envision another method for emplace construction indicating
> list initialization (aka uniform initialization, ::new((void *)p)
> U{std::forward<Args>(args)...}) vs. direct initialization (::new((void *)p)
> U(std::forward<Args>(args)...))?

I am not familiar with C++11 initialization syntax details, I only read
about that, and I'm stuck with C++03 for now. Are you suggesting, that this
would mean adding a lot of (too many?) member functions?

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.

Cheers,
Kris


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