Boost logo

Boost :

Subject: Re: [boost] [move][container] Review Request (new versions of Boost.Move and Boost.Container in sandbox and vault)
From: Ion Gaztañaga (igaztanaga_at_[hidden])
Date: 2009-08-12 16:51:12

Markus Werle escribió:
> Hi!
> Looks like a great job.
> Thanks a lot for this.
> While taking a glance at the docs (very clear and concise!) I had a
> bad feeling about
> //Create a list with 10 default constructed objects
> list<movable> l(10);
> IMHO container::list's interface should be parallel to STL.
> std::list<T> does not have such a constuctor.

list(size_type n) Creates a list with n elements, each of which is a
copy of T().

and from the draft n2857:

requires AllocatableElement<Alloc, T> explicit list(size_type n);
3 Effects: Constructs a list with n default constructed elements.
4 Complexity: Linear in n.



Boost list run by bdawes at, gregod at, cpdaniel at, john at