This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[v3] C++0x allocator support for std::vector


This patch adds full C++0x allocator support to std::vector, building
on the alloc_traits work I've been committing recently.

This is the easiest of the allocator-aware containers, I'm planning to
do the same for std::deque soon.

        * include/bits/stl_vector.h: Use new allocator model in C++0x mode.
        * include/bits/vector.tcc: Likewise.
        * testsuite/util/testsuite_allocator.h (propagating_allocator): Define.
        * testsuite/23_containers/vector/allocator/copy_assign.cc: New.
        * testsuite/23_containers/vector/allocator/noexcept.cc: New.
        * testsuite/23_containers/vector/allocator/copy.cc: New.
        * testsuite/23_containers/vector/allocator/swap.cc: New.
        * testsuite/23_containers/vector/allocator/move_assign.cc: New.
        * testsuite/23_containers/vector/requirements/dr438/assign_neg.cc:
        Adjust dg-error line numbers.
        * testsuite/23_containers/vector/requirements/dr438/insert_neg.cc:
        Likewise.
        * testsuite/23_containers/vector/requirements/dr438/constructor_1_neg.cc:
        Likewise.
        * testsuite/23_containers/vector/requirements/dr438/constructor_2_neg.cc:
        Likewise.

Tested x86_64-linux, committed to trunk.

Attachment: allocs.txt
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]