diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2018-12-18 15:34:43 +0000 |
---|---|---|
committer | Jonathan Wakely <redi@gcc.gnu.org> | 2018-12-18 15:34:43 +0000 |
commit | 49cefcf3f084dabc327914269e5787bac8b20f46 (patch) | |
tree | 406e57c2a1a44b52f46558830652c1be3689479e /gcc | |
parent | 34a9bcaf8b71771f93fe1f09e0c060767bcb7601 (diff) | |
download | gcc-49cefcf3f084dabc327914269e5787bac8b20f46.zip gcc-49cefcf3f084dabc327914269e5787bac8b20f46.tar.gz gcc-49cefcf3f084dabc327914269e5787bac8b20f46.tar.bz2 |
LWG 3040: define starts_with/ends_with as proposed
* include/std/string_view [__cplusplus > 201703L]
(basic_string_view::starts_with(basic_string_view)): Implement
proposed resolution of LWG 3040 to avoid redundant length check.
(basic_string_view::starts_with(_CharT)): Implement proposed
resolution of LWG 3040 to check at most one character.
(basic_string_view::ends_with(_CharT)): Likewise.
From-SVN: r267234
Diffstat (limited to 'gcc')
0 files changed, 0 insertions, 0 deletions