libc++: First cut at <dynarray>

Marshall Clow mclow.lists at
Mon Sep 9 09:06:00 PDT 2013

<dynarray> See

Open Issues:
1) This includes <tuple> because that's where __uses_alloc_ctor lives. I'm thinking that __uses_alloc_ctor should be hoisted into a common header. Maybe __functional_base.

2) This includes a general implementation of user-allocator construction (named __user_alloc_construct). This should probably be hoisted as well; and possibly the code in scoped_allocator can be reworked to use it (if it simplifies things).

3) There's no support for stack allocations at present; that requires compiler support. I'm working with some people on getting that into clang.

4) There's an awful lot of duplication in the (many, many) constructors.

-- Marshall

Marshall Clow     Idio Software   <mailto:mclow.lists at>

A.D. 1517: Martin Luther nails his 95 Theses to the church door and is promptly moderated down to (-1, Flamebait).
        -- Yu Suzuki

-------------- next part --------------
A non-text attachment was scrubbed...
Name: dynarray-1.patch
Type: application/octet-stream
Size: 37179 bytes
Desc: not available
URL: <>

More information about the cfe-commits mailing list