
12 Aug
2009
12 Aug
'09
8:51 p.m.
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.
http://www.sgi.com/tech/stl/List.html 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. Best, Ion