stl_vector.h: Use new allocator model in C++0x mode.
authorJonathan Wakely <jwakely.gcc@gmail.com>
Sat, 9 Jul 2011 13:06:29 +0000 (13:06 +0000)
committerJonathan Wakely <redi@gcc.gnu.org>
Sat, 9 Jul 2011 13:06:29 +0000 (14:06 +0100)
commitbd8485dc9f89c0eff0a548a6ba210e75be6f419c
tree9de30d3673ee4ce80fd8dab53b821f2f28eef1b5
parentd526242cd8b91c314769b920b7e24a457f7f585e
stl_vector.h: Use new allocator model in C++0x mode.

2011-07-09  Jonathan Wakely  <jwakely.gcc@gmail.com>

* 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.

From-SVN: r176078
13 files changed:
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/stl_vector.h
libstdc++-v3/include/bits/vector.tcc
libstdc++-v3/testsuite/23_containers/vector/allocator/copy.cc [new file with mode: 0644]
libstdc++-v3/testsuite/23_containers/vector/allocator/copy_assign.cc [new file with mode: 0644]
libstdc++-v3/testsuite/23_containers/vector/allocator/move_assign.cc [new file with mode: 0644]
libstdc++-v3/testsuite/23_containers/vector/allocator/noexcept.cc [new file with mode: 0644]
libstdc++-v3/testsuite/23_containers/vector/allocator/swap.cc [new file with mode: 0644]
libstdc++-v3/testsuite/23_containers/vector/requirements/dr438/assign_neg.cc
libstdc++-v3/testsuite/23_containers/vector/requirements/dr438/constructor_1_neg.cc
libstdc++-v3/testsuite/23_containers/vector/requirements/dr438/constructor_2_neg.cc
libstdc++-v3/testsuite/23_containers/vector/requirements/dr438/insert_neg.cc
libstdc++-v3/testsuite/util/testsuite_allocator.h