gcc/libstdc++-v3/include
Jonathan Wakely 4d3eaeb4f5 libstdc++: Simplify basic_string_view::ends_with [PR 101361]
The use of npos triggers a diagnostic as described in PR c++/101361.
This change replaces the use of npos with the exact length, which is
already known. We can further simplify it by inlining the effects of
compare and substr, avoiding the redundant range checks in the latter.

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

libstdc++-v3/ChangeLog:

	PR c++/101361
	* include/std/string_view (ends_with): Use traits_type::compare
	directly.
2021-07-13 15:21:26 +01:00
..
backward
bits libstdc++: Revert changes to std::unique_ptr<T[]>::operator[] [PR 101271] 2021-07-02 12:15:28 +01:00
c
c_compatibility
c_global
c_std
debug libstdc++: [_GLIBCXX_DEBUG] Enhance rendering of assert message 2021-05-26 21:50:17 +02:00
decimal
experimental libstdc++: Improvements to Doxygen markup 2021-07-01 18:45:48 +01:00
ext libstdc++: Improvements to Doxygen markup 2021-07-01 18:45:48 +01:00
parallel
precompiled
pstl
std libstdc++: Simplify basic_string_view::ends_with [PR 101361] 2021-07-13 15:21:26 +01:00
tr1 libstdc++: Fix even more doxygen markup for group close commands 2021-04-09 13:09:23 +01:00
tr2
Makefile.am libstdc++: Refactor/cleanup of C++20 atomic wait implementation 2021-04-20 15:14:58 +01:00
Makefile.in libstdc++: Refactor/cleanup of C++20 atomic wait implementation 2021-04-20 15:14:58 +01:00