gcc/libstdc++-v3/include/ext
Jonathan Wakely 1319041924 Avoid reallocation for basic_string::clear()
PR libstdc++/56166
	PR libstdc++/77582
	* include/bits/basic_string.h (basic_string::clear()): Drop reference
	and use empty rep.
	* include/ext/rc_string_base.h (__rc_string_base::_M_clear()):
	Likewise.
	* testsuite/21_strings/basic_string/56166.cc: New.
	* testsuite/ext/vstring/modifiers/clear/56166.cc: New.

From-SVN: r240447
2016-09-23 18:25:34 +01:00
..
pb_ds Replace references to C++0x with C++11 in comments 2016-07-15 21:23:08 +01:00
algorithm Update copyright years. 2016-01-04 15:30:50 +01:00
aligned_buffer.h Update copyright years. 2016-01-04 15:30:50 +01:00
alloc_traits.h Update copyright years. 2016-01-04 15:30:50 +01:00
array_allocator.h Update copyright years. 2016-01-04 15:30:50 +01:00
atomicity.h Update copyright years. 2016-01-04 15:30:50 +01:00
bitmap_allocator.h Update copyright years. 2016-01-04 15:30:50 +01:00
cast.h Update copyright years. 2016-01-04 15:30:50 +01:00
cmath Update copyright years. 2016-01-04 15:30:50 +01:00
codecvt_specializations.h Update copyright years. 2016-01-04 15:30:50 +01:00
concurrence.h Update copyright years. 2016-01-04 15:30:50 +01:00
debug_allocator.h Update copyright years. 2016-01-04 15:30:50 +01:00
enc_filebuf.h Update copyright years. 2016-01-04 15:30:50 +01:00
extptr_allocator.h Update copyright years. 2016-01-04 15:30:50 +01:00
functional Update copyright years. 2016-01-04 15:30:50 +01:00
iterator Update copyright years. 2016-01-04 15:30:50 +01:00
malloc_allocator.h Update copyright years. 2016-01-04 15:30:50 +01:00
memory Update copyright years. 2016-01-04 15:30:50 +01:00
mt_allocator.h Update copyright years. 2016-01-04 15:30:50 +01:00
new_allocator.h Update copyright years. 2016-01-04 15:30:50 +01:00
numeric Update copyright years. 2016-01-04 15:30:50 +01:00
numeric_traits.h Update copyright years. 2016-01-04 15:30:50 +01:00
pod_char_traits.h Update copyright years. 2016-01-04 15:30:50 +01:00
pointer.h Update copyright years. 2016-01-04 15:30:50 +01:00
pool_allocator.h Update copyright years. 2016-01-04 15:30:50 +01:00
random Update copyright years. 2016-01-04 15:30:50 +01:00
random.tcc random.tcc: Use __builtin_isfinite instead of std::isfinite. 2016-01-15 22:26:02 +00:00
rb_tree Update copyright years. 2016-01-04 15:30:50 +01:00
rc_string_base.h Avoid reallocation for basic_string::clear() 2016-09-23 18:25:34 +01:00
rope Update copyright years. 2016-01-04 15:30:50 +01:00
ropeimpl.h Fix missing qualification in <ext/rope> 2016-07-25 13:56:12 +01:00
slist Update copyright years. 2016-01-04 15:30:50 +01:00
sso_string_base.h Update copyright years. 2016-01-04 15:30:50 +01:00
stdio_filebuf.h Update copyright years. 2016-01-04 15:30:50 +01:00
stdio_sync_filebuf.h Update copyright years. 2016-01-04 15:30:50 +01:00
string_conversions.h Replace references to C++0x with C++11 in comments 2016-07-15 21:23:08 +01:00
throw_allocator.h Update copyright years. 2016-01-04 15:30:50 +01:00
type_traits.h libstdc++/69406 Fix test to check for supported headers 2016-01-21 13:33:27 +00:00
typelist.h Update copyright years. 2016-01-04 15:30:50 +01:00
vstring_fwd.h Update copyright years. 2016-01-04 15:30:50 +01:00
vstring_util.h Update copyright years. 2016-01-04 15:30:50 +01:00
vstring.h Update copyright years. 2016-01-04 15:30:50 +01:00
vstring.tcc Update copyright years. 2016-01-04 15:30:50 +01:00