r216988 - in /trunk/libstdc++-v3: ChangeLog inc...

redi@gcc.gnu.org redi@gcc.gnu.org
Fri Oct 31 20:49:00 GMT 2014


Author: redi
Date: Fri Oct 31 20:49:40 2014
New Revision: 216988

URL: https://gcc.gnu.org/viewcvs?rev=216988&root=gcc&view=rev
Log:
Make std::vector<bool> meet C++11 allocator requirements.

	* include/bits/stl_bvector.h (_Bvector_base): Use allocator_traits.
	(_Bvector_base::_Bvector_impl): Use allocator's pointer type.
	(_Bvector_base::_M_end_addr()): Convert to raw pointer.
	(vector<bool>): Use allocator_traits and _M_end_addr. Add allocator
	extended constructors.
	* include/bits/vector.tcc (vector<bool>): Use allocator_traits and
	_M_end_addr.
	* testsuite/23_containers/vector/bool/allocator/copy.cc: New.
	* testsuite/23_containers/vector/bool/allocator/minimal.cc: New.
	* testsuite/23_containers/vector/bool/allocator/noexcept.cc: New.
	* testsuite/23_containers/vector/bool/allocator/copy_assign.cc: New.
	* testsuite/23_containers/vector/bool/allocator/move.cc: New.
	* testsuite/23_containers/vector/bool/allocator/swap.cc: New.
	* testsuite/23_containers/vector/bool/allocator/ext_ptr.cc: New.
	* testsuite/23_containers/vector/bool/allocator/move_assign.cc: New.

Added:
    trunk/libstdc++-v3/testsuite/23_containers/vector/bool/allocator/
    trunk/libstdc++-v3/testsuite/23_containers/vector/bool/allocator/copy.cc
    trunk/libstdc++-v3/testsuite/23_containers/vector/bool/allocator/copy_assign.cc
    trunk/libstdc++-v3/testsuite/23_containers/vector/bool/allocator/ext_ptr.cc
    trunk/libstdc++-v3/testsuite/23_containers/vector/bool/allocator/minimal.cc
    trunk/libstdc++-v3/testsuite/23_containers/vector/bool/allocator/move.cc
    trunk/libstdc++-v3/testsuite/23_containers/vector/bool/allocator/move_assign.cc
    trunk/libstdc++-v3/testsuite/23_containers/vector/bool/allocator/noexcept.cc
    trunk/libstdc++-v3/testsuite/23_containers/vector/bool/allocator/swap.cc
Modified:
    trunk/libstdc++-v3/ChangeLog
    trunk/libstdc++-v3/include/bits/stl_bvector.h
    trunk/libstdc++-v3/include/bits/vector.tcc



More information about the Libstdc++-cvs mailing list