alloc_traits.h (__alloc_traits::max_size): Define.
authorJonathan Wakely <jwakely.gcc@gmail.com>
Tue, 4 Oct 2011 20:34:54 +0000 (20:34 +0000)
committerJonathan Wakely <redi@gcc.gnu.org>
Tue, 4 Oct 2011 20:34:54 +0000 (21:34 +0100)
commit73f050310177d90d001d90a1e639d59309efd40e
tree483c6f7252fc7d791893fd151de372b8053ad8e8
parent97f26732675a4a388b79d927876443c92a55c8c7
alloc_traits.h (__alloc_traits::max_size): Define.

2011-10-04  Jonathan Wakely  <jwakely.gcc@gmail.com>

* include/ext/alloc_traits.h (__alloc_traits::max_size): Define.
(__alloc_traits::rebind): Define.
* include/bits/stl_vector.h: Use them.
* testsuite/util/testsuite_allocator.h (SimpleAllocator): Define.
* testsuite/23_containers/vector/allocator/minimal.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: r179523
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/stl_vector.h
libstdc++-v3/include/ext/alloc_traits.h
libstdc++-v3/testsuite/23_containers/vector/allocator/minimal.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