gcc/libstdc++-v3/testsuite/21_strings/basic_string
Jonathan Wakely 657213f736 PR 77264 constrain new std::basic_string overloads
PR libstdc++/77264
	* include/bits/basic_string.h (operator=(__sv_type)
	(append(__sv_type), assign(__sv_type), insert(size_type, __sv_type))
	(replace(size_type, size_type, __sv_type))
	(replace(const_iterator, const_iterator, __sv_type))
	(find(__sv_type, size_type), rfind(__sv_type, size_type))
	(compare(size_type, size_type, __sv_type)): Reformat.
	(_If_sv): Define helper for SFINAE constaints.
	(append(const _Tp&, size_type, size_type))
	(assign(const _Tp&, size_type, size_type))
	(insert(size_type, const _Tp&, size_type, size_type))
	(replace(size_type, size_type, const _Tp&, size_type, size_type)):
	Use _If_sv.
	* testsuite/21_strings/basic_string/modifiers/append/char/4.cc: Test
	SFINAE constraints.
	* testsuite/21_strings/basic_string/modifiers/append/wchar_t/4.cc:
	Likewise.
	* testsuite/21_strings/basic_string/modifiers/replace/char/7.cc:
	Likewise.
	* testsuite/21_strings/basic_string/modifiers/replace/wchar_t/7.cc:
	Likewise.
	* testsuite/21_strings/basic_string/modifiers/assign/char/4.cc:
	Likewise.
	* testsuite/21_strings/basic_string/modifiers/assign/wchar_t/4.cc:
	Likewise.
	* testsuite/21_strings/basic_string/modifiers/insert/char/3.cc:
	Likewise.
	* testsuite/21_strings/basic_string/modifiers/insert/wchar_t/3.cc:
	Likewise.
	* testsuite/21_strings/basic_string/modifiers/replace/char/7.cc:
	Likewise.
	* testsuite/21_strings/basic_string/operations/compare/char/2.cc:
	Likewise.
	* testsuite/21_strings/basic_string/operations/compare/wchar_t/2.cc:
	Likewise.

From-SVN: r239532
2016-08-17 14:38:52 +01:00
..
allocator Fix std::wstring allocator tests 2016-08-02 20:34:36 +01:00
capacity Update copyright years. 2016-01-04 15:30:50 +01:00
cons Implement std::string_view and P0254r2, 2016-07-28 18:15:26 +03:00
element_access Update copyright years. 2016-01-04 15:30:50 +01:00
inserters_extractors Update copyright years. 2016-01-04 15:30:50 +01:00
literals Update copyright years. 2016-01-04 15:30:50 +01:00
modifiers PR 77264 constrain new std::basic_string overloads 2016-08-17 14:38:52 +01:00
numeric_conversions Update copyright years. 2016-01-04 15:30:50 +01:00
operations PR 77264 constrain new std::basic_string overloads 2016-08-17 14:38:52 +01:00
operators Implement std::string_view and P0254r2, 2016-07-28 18:15:26 +03:00
range_access Update copyright years. 2016-01-04 15:30:50 +01:00
requirements Update copyright years. 2016-01-04 15:30:50 +01:00
types Update copyright years. 2016-01-04 15:30:50 +01:00
40160.cc Update copyright years. 2016-01-04 15:30:50 +01:00
init-list.cc Update copyright years. 2016-01-04 15:30:50 +01:00
lwg2758.cc Implement LWG 2758. 2016-08-11 17:45:23 +03:00
pthread4.cc Update copyright years. 2016-01-04 15:30:50 +01:00
pthread18185.cc Update copyright years. 2016-01-04 15:30:50 +01:00
pthread33394.cc Update copyright years. 2016-01-04 15:30:50 +01:00