aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely@redhat.com>2018-12-18 15:34:43 +0000
committerJonathan Wakely <redi@gcc.gnu.org>2018-12-18 15:34:43 +0000
commit49cefcf3f084dabc327914269e5787bac8b20f46 (patch)
tree406e57c2a1a44b52f46558830652c1be3689479e /gcc
parent34a9bcaf8b71771f93fe1f09e0c060767bcb7601 (diff)
downloadgcc-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