-
- Downloads
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
Showing
- libstdc++-v3/ChangeLog 29 additions, 0 deletionslibstdc++-v3/ChangeLog
- libstdc++-v3/include/bits/allocator.h 20 additions, 10 deletionslibstdc++-v3/include/bits/allocator.h
- libstdc++-v3/include/bits/basic_string.h 7 additions, 4 deletionslibstdc++-v3/include/bits/basic_string.h
- libstdc++-v3/include/bits/deque.tcc 18 additions, 0 deletionslibstdc++-v3/include/bits/deque.tcc
- libstdc++-v3/include/bits/stl_bvector.h 23 additions, 7 deletionslibstdc++-v3/include/bits/stl_bvector.h
- libstdc++-v3/include/bits/stl_deque.h 4 additions, 1 deletionlibstdc++-v3/include/bits/stl_deque.h
- libstdc++-v3/include/bits/stl_vector.h 4 additions, 1 deletionlibstdc++-v3/include/bits/stl_vector.h
- libstdc++-v3/include/bits/vector.tcc 38 additions, 24 deletionslibstdc++-v3/include/bits/vector.tcc
- libstdc++-v3/include/debug/deque 6 additions, 1 deletionlibstdc++-v3/include/debug/deque
- libstdc++-v3/include/debug/string 14 additions, 1 deletionlibstdc++-v3/include/debug/string
- libstdc++-v3/include/debug/vector 9 additions, 1 deletionlibstdc++-v3/include/debug/vector
- libstdc++-v3/include/ext/vstring.h 7 additions, 4 deletionslibstdc++-v3/include/ext/vstring.h
- libstdc++-v3/testsuite/21_strings/debug/shrink_to_fit.cc 39 additions, 0 deletionslibstdc++-v3/testsuite/21_strings/debug/shrink_to_fit.cc
- libstdc++-v3/testsuite/23_containers/deque/debug/shrink_to_fit.cc 51 additions, 0 deletions...+-v3/testsuite/23_containers/deque/debug/shrink_to_fit.cc
- libstdc++-v3/testsuite/23_containers/vector/bool/capacity/shrink_to_fit.cc 40 additions, 0 deletions...suite/23_containers/vector/bool/capacity/shrink_to_fit.cc
- libstdc++-v3/testsuite/23_containers/vector/debug/bool/shrink_to_fit.cc 42 additions, 0 deletions...estsuite/23_containers/vector/debug/bool/shrink_to_fit.cc
- libstdc++-v3/testsuite/23_containers/vector/debug/shrink_to_fit.cc 40 additions, 0 deletions...-v3/testsuite/23_containers/vector/debug/shrink_to_fit.cc
Loading
Please register or sign in to comment