basic_string.tcc (_S_create): Use consistently the exponential policy, simplify.
authorPaolo Carlini <pcarlini@suse.de>
Wed, 13 Oct 2004 08:58:41 +0000 (08:58 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Wed, 13 Oct 2004 08:58:41 +0000 (08:58 +0000)
commitcbb0dcef128256fdd934617239ab00d62e45611a
tree0c82b01d7007405dc4ce129bb2cea24575ff00a3
parentf76ccf602e952b33cbfb9684e307af4e09b9a82c
basic_string.tcc (_S_create): Use consistently the exponential policy, simplify.

2004-10-13  Paolo Carlini  <pcarlini@suse.de>

* include/bits/basic_string.tcc (_S_create): Use consistently
the exponential policy, simplify.
* testsuite/performance/21_strings/string_append_2.cc: New.

* include/ext/array_allocator.h (allocate): Fix bad_alloc check.
* testsuite/ext/array_allocator/2.cc: Fix wrt 64-bit archs (in
that case sizeof(_Rep) == 24).

From-SVN: r88972
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/basic_string.tcc
libstdc++-v3/include/ext/array_allocator.h
libstdc++-v3/testsuite/ext/array_allocator/2.cc
libstdc++-v3/testsuite/performance/21_strings/string_append_2.cc [new file with mode: 0644]