gcc/libstdc++-v3/include
François Dumont 8a752dfea6 allocator.h (__shrink_to_fit): Rename to __shrink_to_fit_aux, fix.
2011-06-12  François Dumont  <francois.cppdevs@free.fr>
	    Paolo Carlini  <paolo.carlini@oracle.com>

	* include/bits/allocator.h (__shrink_to_fit): Rename to
	__shrink_to_fit_aux, fix.
	* include/bits/stl_vector.h (_M_shrink_to_fit): Declare.
	(shrink_to_fit): Use the latter.
	* include/debug/vector (shrink_to_fit): Likewise.
	* include/bits/vector.tcc (_M_shrink_to_fit): Define.
	* include/bits/stl_deque.h (_M_shrink_to_fit): Declare.
	(shrink_to_fit): Use the latter.
	* include/debug/deque (shrink_to_fit): Likewise.
	* include/bits/deque.tcc (_M_shrink_to_fit): Define.
	* include/bits/vector.tcc (vector<bool>::_M_reallocate): Add.
	* include/bits/stl_bvector.h (_M_shrink_to_fit): Declare.
	(shrink_to_fit): Use the latter.
	(reserve): Use _M_reallocate, move inline.
	(_Bvector_base<>::_S_nword): Add, use it throughout.
	* include/debug/string (shrink_to_fit): Redo.
	* include/ext/vstring.h (shrink_to_fit): Optimize.
	* include/bits/basic_string.h (shrink_to_fit): Likewise.
	* testsuite/21_strings/debug/shrink_to_fit.cc: New.
	* testsuite/23_containers/vector/debug/shrink_to_fit.cc: Likewise.
	* testsuite/23_containers/vector/debug/bool/shrink_to_fit.cc:
	Likewise.
	* testsuite/23_containers/vector/bool/capacity/shrink_to_fit.cc:
	Likewise.
	* testsuite/23_containers/deque/debug/shrink_to_fit.cc: Likewise.



Co-Authored-By: Paolo Carlini <paolo.carlini@oracle.com>

From-SVN: r174967
2011-06-12 15:51:36 +00:00
..
backward re PR libstdc++/49060 (use of deleted memory in __gnu_cxx::hashtable::erase) 2011-05-25 23:09:14 +00:00
bits allocator.h (__shrink_to_fit): Rename to __shrink_to_fit_aux, fix. 2011-06-12 15:51:36 +00:00
c PR libstdc++/36104 part four 2011-01-30 22:39:36 +00:00
c_compatibility PR libstdc++/36104 part four 2011-01-30 22:39:36 +00:00
c_global re PR libstdc++/48933 (Infinite recursion in tr1/cmath functions with complex parameters) 2011-05-09 15:38:21 +00:00
c_std PR libstdc++/36104 part four 2011-01-30 22:39:36 +00:00
debug allocator.h (__shrink_to_fit): Rename to __shrink_to_fit_aux, fix. 2011-06-12 15:51:36 +00:00
decimal PR libstdc++/36104 part four 2011-01-30 22:39:36 +00:00
ext allocator.h (__shrink_to_fit): Rename to __shrink_to_fit_aux, fix. 2011-06-12 15:51:36 +00:00
parallel re PR libstdc++/49187 (parallel mode compilation broken - unqualified lookup? (bisected)) 2011-05-27 16:35:36 +00:00
precompiled typeindex: New. 2010-09-22 12:04:08 +00:00
profile hashtable.h (_Hashtable<>::_Hashtable(_Hashtable&&)): Use std::move on the allocator, use noexcept. 2011-06-01 14:16:19 +00:00
std type_traits (__is_copy_assignable_impl, [...]): Fix typos. 2011-06-09 08:03:14 +00:00
tr1 re PR c++/24163 (dependent Base class scope examined during unqualified name lookup in template) 2011-05-20 14:01:22 -04:00
Makefile.am *: Doxygen markup redo. 2011-06-10 17:10:42 +00:00
Makefile.in *: Doxygen markup redo. 2011-06-10 17:10:42 +00:00