gcc/libstdc++-v3/testsuite/27_io/basic_stringbuf
Jonathan Wakely 95cb0fc8c5 libstdc++: Add remaining C++20 additions to <sstream> [P0408R7]
This adds the new overloads of basic_stringbuf::str, and the
corresponding overloads to basic_istringstream, basic_ostringstream and
basic_stringstream.

libstdc++-v3/ChangeLog:

	* config/abi/pre/gnu.ver (GLIBCXX_3.4.21): Tighten patterns.
	(GLIBCXX_3.4.29): Export new symbols.
	* include/bits/alloc_traits.h (__allocator_like): New concept.
	* include/std/sstream (basic_stringbuf::swap): Add exception
	specification.
	(basic_stringbuf::str() const): Add ref-qualifier. Use new
	_M_high_mark function.
	(basic_stringbuf::str(const SAlloc&) const): Define new function.
	(basic_stringbuf::str() &&): Likewise.
	(basic_stringbuf::str(const basic_string<C,T,SAlloc>&)):
	Likewise.
	(basic_stringbuf::str(basic_string<C,T,Alloc>&&)): Likewise.
	(basic_stringbuf::view() const): Use _M_high_mark.
	(basic_istringstream::str, basic_ostringstream::str)
	(basic_stringstream::str): Define new overloads.
	* src/c++20/sstream-inst.cc (basic_stringbuf::str)
	(basic_istringstream::str, basic_ostringstream::str)
	(basic_stringstream::str): Explicit instantiation definitions
	for new overloads.
	* testsuite/27_io/basic_istringstream/view/char/1.cc: Add more
	checks.
	* testsuite/27_io/basic_istringstream/view/wchar_t/1.cc:
	Likewise.
	* testsuite/27_io/basic_ostringstream/view/char/1.cc:
	Likewise.
	* testsuite/27_io/basic_ostringstream/view/wchar_t/1.cc:
	Likewise.
	* testsuite/27_io/basic_stringstream/view/char/1.cc:
	Likewise.
	* testsuite/27_io/basic_stringstream/view/wchar_t/1.cc:
	Likewise.
	* testsuite/27_io/basic_istringstream/str/char/2.cc: New test.
	* testsuite/27_io/basic_istringstream/str/wchar_t/2.cc: New test.
	* testsuite/27_io/basic_ostringstream/str/char/3.cc: New test.
	* testsuite/27_io/basic_ostringstream/str/wchar_t/3.cc: New test.
	* testsuite/27_io/basic_stringbuf/str/char/4.cc: New test.
	* testsuite/27_io/basic_stringbuf/str/wchar_t/4.cc: New test.
	* testsuite/27_io/basic_stringstream/str/char/5.cc: New test.
	* testsuite/27_io/basic_stringstream/str/wchar_t/5.cc.cc: New test.
2020-11-10 19:22:47 +00:00
..
cons libstdc++: Fix new <sstream> constructors 2020-11-05 13:31:32 +00:00
imbue Update copyright years. 2020-01-01 12:51:42 +01:00
in_avail Update copyright years. 2020-01-01 12:51:42 +01:00
overflow Update copyright years. 2020-01-01 12:51:42 +01:00
pbackfail Update copyright years. 2020-01-01 12:51:42 +01:00
requirements Update copyright years. 2020-01-01 12:51:42 +01:00
sbumpc Update copyright years. 2020-01-01 12:51:42 +01:00
seekoff Update copyright years. 2020-01-01 12:51:42 +01:00
seekpos Update copyright years. 2020-01-01 12:51:42 +01:00
setbuf Update copyright years. 2020-01-01 12:51:42 +01:00
sgetc Update copyright years. 2020-01-01 12:51:42 +01:00
sgetn Update copyright years. 2020-01-01 12:51:42 +01:00
snextc Update copyright years. 2020-01-01 12:51:42 +01:00
sputbackc Update copyright years. 2020-01-01 12:51:42 +01:00
sputc Update copyright years. 2020-01-01 12:51:42 +01:00
sputn Update copyright years. 2020-01-01 12:51:42 +01:00
str libstdc++: Add remaining C++20 additions to <sstream> [P0408R7] 2020-11-10 19:22:47 +00:00
sungetc Update copyright years. 2020-01-01 12:51:42 +01:00
sync Update copyright years. 2020-01-01 12:51:42 +01:00
view libstdc++: Implement C++20 features for <sstream> 2020-10-28 11:56:06 -07:00