gcc/libstdc++-v3/include/bits
Jonathan Wakely 0e19dc8582 libstdc++: Only define basic_string::contains for C++23
The new contains member of the COW string is defined for non-strict
gnu++20 mode as well as for C++23 modes. I think that was left in the
committed patch unintentionally. It is inconsistent with the SSO string,
and doesn't actually compile because it uses the
basic_string_view::contains member which only defined for C++23.

This makes it only defined for C++23.

Signed-off-by: Jonathan Wakely <jwakely@redhat.com>

libstdc++-v3/ChangeLog:

	* include/bits/basic_string.h (basic_string::contains): Do not
	define for -std=gnu++20.

(cherry picked from commit 3b3f2f7c26)
2021-08-24 15:16:13 +01:00
..
algorithmfwd.h Update copyright years. 2021-01-04 10:26:59 +01:00
align.h libstdc++: Fix headers that can't be used as header units [PR 99413] 2021-03-10 15:27:41 +00:00
alloc_traits.h libstdc++: Fix Doxygen warnings 2021-04-06 16:43:24 +01:00
allocated_ptr.h Update copyright years. 2021-01-04 10:26:59 +01:00
allocator.h libstdc++: Fix missing members in std::allocator<void> 2021-05-11 20:50:09 +01:00
atomic_base.h libstdc++: Fix Wrong param type in :atomic_ref<_Tp*>::wait [PR100889] 2021-06-08 16:01:48 -07:00
atomic_futex.h Update copyright years. 2021-01-04 10:26:59 +01:00
atomic_timed_wait.h libstdc++: Fix semaphore to work with system_clock timeouts 2021-04-23 10:39:16 +01:00
atomic_wait.h libstdc++: Fix wrong thread waking on notify [PR100334] 2021-05-17 12:06:51 -07:00
basic_ios.h libstdc++: Fix doxygen markup for group close commands 2021-04-06 16:43:24 +01:00
basic_ios.tcc Update copyright years. 2021-01-04 10:26:59 +01:00
basic_string.h libstdc++: Only define basic_string::contains for C++23 2021-08-24 15:16:13 +01:00
basic_string.tcc string: Add a workaround for -Wstringop-overread false positives [PR98465] 2021-02-09 12:32:43 +01:00
boost_concept_check.h Update copyright years. 2021-01-04 10:26:59 +01:00
c++0x_warning.h Update copyright years. 2021-01-04 10:26:59 +01:00
c++config libstdc++: Use __builtin_unreachable for constexpr assertions [PR 100676] 2021-06-02 14:43:20 +01:00
char_traits.h libstdc++: Simplify constexpr checks in std::char_traits [PR 91488] 2021-06-18 11:16:52 +01:00
charconv.h Update copyright years. 2021-01-04 10:26:59 +01:00
codecvt.h libstdc++: Fix headers that can't be used as header units [PR 99413] 2021-03-10 15:27:41 +00:00
concept_check.h Update copyright years. 2021-01-04 10:26:59 +01:00
cpp_type_traits.h Update copyright years. 2021-01-04 10:26:59 +01:00
deque.tcc Update copyright years. 2021-01-04 10:26:59 +01:00
enable_special_members.h libstdc++: Fix headers that can't be used as header units [PR 99413] 2021-03-10 15:27:41 +00:00
erase_if.h libstdc++: Fix headers that can't be used as header units [PR 99413] 2021-03-10 15:27:41 +00:00
forward_list.h libstdc++: Fix doxygen markup for group close commands 2021-04-06 16:43:24 +01:00
forward_list.tcc Update copyright years. 2021-01-04 10:26:59 +01:00
fs_dir.h libstdc++: Fix doxygen markup for group close commands 2021-04-06 16:43:24 +01:00
fs_fwd.h libstdc++: Improvements to Doxygen markup 2021-08-11 15:30:37 +01:00
fs_ops.h libstdc++: Fix doxygen markup for group close commands 2021-04-06 16:43:24 +01:00
fs_path.h libstdc++: Improvements to Doxygen markup 2021-08-11 15:30:37 +01:00
fstream.tcc Update copyright years. 2021-01-04 10:26:59 +01:00
functexcept.h Update copyright years. 2021-01-04 10:26:59 +01:00
functional_hash.h libstdc++: Fix doxygen markup for group close commands 2021-04-06 16:43:24 +01:00
gslice_array.h libstdc++: Fix doxygen markup for group close commands 2021-04-06 16:43:24 +01:00
gslice.h libstdc++: Fix doxygen markup for group close commands 2021-04-06 16:43:24 +01:00
hashtable_policy.h libstdc++: Fix doxygen markup for group close commands 2021-04-06 16:43:24 +01:00
hashtable.h libstdc++: Add feature test macro for heterogeneous lookup in unordered containers 2021-06-11 23:23:55 +01:00
indirect_array.h libstdc++: Fix doxygen markup for group close commands 2021-04-06 16:43:24 +01:00
invoke.h libstdc++: Fix headers that can't be used as header units [PR 99413] 2021-03-10 15:27:41 +00:00
ios_base.h Update copyright years. 2021-01-04 10:26:59 +01:00
istream.tcc Update copyright years. 2021-01-04 10:26:59 +01:00
iterator_concepts.h libstdc++: Use function object for __decay_copy helper 2021-07-16 14:14:51 +01:00
list.tcc Update copyright years. 2021-01-04 10:26:59 +01:00
locale_classes.h libstdc++: Fix doxygen markup for group close commands 2021-04-06 16:43:24 +01:00
locale_classes.tcc Update copyright years. 2021-01-04 10:26:59 +01:00
locale_conv.h Update copyright years. 2021-01-04 10:26:59 +01:00
locale_facets_nonio.h libstdc++: Fix doxygen markup for group close commands 2021-04-06 16:43:24 +01:00
locale_facets_nonio.tcc Update copyright years. 2021-01-04 10:26:59 +01:00
locale_facets.h libstdc++: Fix doxygen markup for group close commands 2021-04-06 16:43:24 +01:00
locale_facets.tcc Update copyright years. 2021-01-04 10:26:59 +01:00
localefwd.h Update copyright years. 2021-01-04 10:26:59 +01:00
mask_array.h libstdc++: Fix doxygen markup for group close commands 2021-04-06 16:43:24 +01:00
max_size_type.h libstdc++: Fix Doxygen warnings 2021-04-06 16:43:24 +01:00
memoryfwd.h libstdc++: Fix missing members in std::allocator<void> 2021-05-11 20:50:09 +01:00
move.h libstdc++: Add nodiscard attribute to cast-like functions 2021-04-06 16:43:25 +01:00
node_handle.h Update copyright years. 2021-01-04 10:26:59 +01:00
ostream_insert.h libstdc++: Fix headers that can't be used as header units [PR 99413] 2021-03-10 15:27:41 +00:00
ostream.tcc Update copyright years. 2021-01-04 10:26:59 +01:00
parse_numbers.h libstdc++: Fix headers that can't be used as header units [PR 99413] 2021-03-10 15:27:41 +00:00
postypes.h Update copyright years. 2021-01-04 10:26:59 +01:00
predefined_ops.h libstdc++: Fix headers that can't be used as header units [PR 99413] 2021-03-10 15:27:41 +00:00
ptr_traits.h Update copyright years. 2021-01-04 10:26:59 +01:00
quoted_string.h Update copyright years. 2021-01-04 10:26:59 +01:00
random.h libstdc++: Implement LWG 3422 for std::seed_seq 2021-08-24 15:13:18 +01:00
random.tcc libstdc++: Implement LWG 3422 for std::seed_seq 2021-08-24 15:13:18 +01:00
range_access.h libstdc++: Add noexcept to std::begin etc as per LWG 2280 and 3537 2021-03-22 15:56:49 +00:00
ranges_algo.h libstdc++: Reduce ranges::minmax/minmax_element comparison complexity 2021-07-13 09:53:27 -04:00
ranges_algobase.h Update copyright years. 2021-01-04 10:26:59 +01:00
ranges_base.h libstdc++: Use function object for __decay_copy helper 2021-07-16 14:14:51 +01:00
ranges_cmp.h libstdc++: Add nodiscard attribute to cast-like functions 2021-04-06 16:43:25 +01:00
ranges_uninitialized.h Update copyright years. 2021-01-04 10:26:59 +01:00
ranges_util.h libstdc++: Remove precondition checks from ranges::subrange 2021-07-19 11:56:50 +01:00
refwrap.h libstdc++: Fix doxygen markup for group close commands 2021-04-06 16:43:24 +01:00
regex_automaton.h libstdc++: Fix doxygen markup for group close commands 2021-04-06 16:43:24 +01:00
regex_automaton.tcc Update copyright years. 2021-01-04 10:26:59 +01:00
regex_compiler.h libstdc++: Fix doxygen markup for group close commands 2021-04-06 16:43:24 +01:00
regex_compiler.tcc Update copyright years. 2021-01-04 10:26:59 +01:00
regex_constants.h libstdc++: Fix more doxygen markup for group close commands 2021-04-08 21:42:58 +01:00
regex_error.h libstdc++: Fix doxygen markup for group close commands 2021-04-06 16:43:24 +01:00
regex_executor.h libstdc++: Fix doxygen markup for group close commands 2021-04-06 16:43:24 +01:00
regex_executor.tcc Update copyright years. 2021-01-04 10:26:59 +01:00
regex_scanner.h libstdc++: Fix doxygen markup for group close commands 2021-04-06 16:43:24 +01:00
regex_scanner.tcc Update copyright years. 2021-01-04 10:26:59 +01:00
regex.h libstdc++: Fix Doxygen warnings 2021-04-06 16:43:24 +01:00
regex.tcc Update copyright years. 2021-01-04 10:26:59 +01:00
semaphore_base.h libstdc++: Add missing headers for errno and std::terminate 2021-08-24 15:13:18 +01:00
shared_ptr_atomic.h libstdc++: Fix doxygen markup for group close commands 2021-04-06 16:43:24 +01:00
shared_ptr_base.h libstdc++: Implement proposed resolution to LWG 3548 2021-05-11 20:50:08 +01:00
shared_ptr.h libstdc++: Reject std::make_shared<T[]> [PR 99006] 2021-05-11 20:50:06 +01:00
slice_array.h libstdc++: Fix doxygen markup for group close commands 2021-04-06 16:43:24 +01:00
specfun.h libstdc++: Fix doxygen markup for group close commands 2021-04-06 16:43:24 +01:00
sstream.tcc Update copyright years. 2021-01-04 10:26:59 +01:00
std_abs.h Update copyright years. 2021-01-04 10:26:59 +01:00
std_function.h libstdc++: Fix doxygen markup for group close commands 2021-04-06 16:43:24 +01:00
std_mutex.h libstdc++: Fix doxygen markup for group close commands 2021-04-06 16:43:24 +01:00
std_thread.h libstdc++: Add missing noexcept on std::thread member function [PR 100298] 2021-04-28 12:56:31 +01:00
stl_algo.h Update copyright years. 2021-01-04 10:26:59 +01:00
stl_algobase.h Update copyright years. 2021-01-04 10:26:59 +01:00
stl_bvector.h libstdc++: Fix headers that can't be used as header units [PR 99413] 2021-03-10 15:27:41 +00:00
stl_construct.h Update copyright years. 2021-01-04 10:26:59 +01:00
stl_deque.h libstdc++: Fix doxygen markup for group close commands 2021-04-06 16:43:24 +01:00
stl_function.h libstdc++: Add unordered containers heterogeneous lookup 2021-02-09 21:56:27 +01:00
stl_heap.h Update copyright years. 2021-01-04 10:26:59 +01:00
stl_iterator_base_funcs.h Update copyright years. 2021-01-04 10:26:59 +01:00
stl_iterator_base_types.h libstdc++: Fix doxygen markup for group close commands 2021-04-06 16:43:24 +01:00
stl_iterator.h libstdc++: Implement LWG 3391 changes to move/counted_iterator::base() 2021-06-10 14:58:53 -04:00
stl_list.h Update copyright years. 2021-01-04 10:26:59 +01:00
stl_map.h libstdc++: Fix doxygen markup for group close commands 2021-04-06 16:43:24 +01:00
stl_multimap.h libstdc++: Fix doxygen markup for group close commands 2021-04-06 16:43:24 +01:00
stl_multiset.h libstdc++: Fix doxygen markup for group close commands 2021-04-06 16:43:24 +01:00
stl_numeric.h libstdc++: Fix doxygen markup for group close commands 2021-04-06 16:43:24 +01:00
stl_pair.h libstdc++: Fix doxygen markup for group close commands 2021-04-06 16:43:24 +01:00
stl_queue.h Update copyright years. 2021-01-04 10:26:59 +01:00
stl_raw_storage_iter.h Update copyright years. 2021-01-04 10:26:59 +01:00
stl_relops.h Update copyright years. 2021-01-04 10:26:59 +01:00
stl_set.h libstdc++: Fix doxygen markup for group close commands 2021-04-06 16:43:24 +01:00
stl_stack.h Update copyright years. 2021-01-04 10:26:59 +01:00
stl_tempbuf.h Update copyright years. 2021-01-04 10:26:59 +01:00
stl_tree.h libstdc++: Add unordered containers heterogeneous lookup 2021-02-09 21:56:27 +01:00
stl_uninitialized.h libstdc++: Fix doxygen markup for group close commands 2021-04-06 16:43:24 +01:00
stl_vector.h Update copyright years. 2021-01-04 10:26:59 +01:00
stream_iterator.h libstdc++: Fix doxygen markup for group close commands 2021-04-06 16:43:24 +01:00
streambuf_iterator.h libstdc++: Fix even more doxygen markup for group close commands 2021-04-09 13:09:23 +01:00
streambuf.tcc Update copyright years. 2021-01-04 10:26:59 +01:00
string_view.tcc libstdc++: Optimize std::string_view::find [PR 66414] 2021-01-27 13:45:52 +00:00
stringfwd.h Update copyright years. 2021-01-04 10:26:59 +01:00
this_thread_sleep.h libstdc++: Improve Doxygen documentation groups [PR 101258] 2021-08-11 15:30:37 +01:00
uniform_int_dist.h libstdc++: Fix headers that can't be used as header units [PR 99413] 2021-03-10 15:27:41 +00:00
unique_lock.h libstdc++: Fix headers that can't be used as header units [PR 99413] 2021-03-10 15:27:41 +00:00
unique_ptr.h libstdc++: Fix doxygen markup for group close commands 2021-04-06 16:43:24 +01:00
unordered_map.h libstdc++: Fix doxygen markup for group close commands 2021-04-06 16:43:24 +01:00
unordered_set.h libstdc++: Fix doxygen markup for group close commands 2021-04-06 16:43:24 +01:00
uses_allocator_args.h libstdc++: Fix even more doxygen markup for group close commands 2021-04-09 13:09:23 +01:00
uses_allocator.h Update copyright years. 2021-01-04 10:26:59 +01:00
valarray_after.h Update copyright years. 2021-01-04 10:26:59 +01:00
valarray_array.h Update copyright years. 2021-01-04 10:26:59 +01:00
valarray_array.tcc Update copyright years. 2021-01-04 10:26:59 +01:00
valarray_before.h Update copyright years. 2021-01-04 10:26:59 +01:00
vector.tcc Update copyright years. 2021-01-04 10:26:59 +01:00