LWG 3040: define starts_with/ends_with as proposed
authorJonathan Wakely <jwakely@redhat.com>
Tue, 18 Dec 2018 15:34:43 +0000 (15:34 +0000)
committerJonathan Wakely <redi@gcc.gnu.org>
Tue, 18 Dec 2018 15:34:43 +0000 (15:34 +0000)
commit49cefcf3f084dabc327914269e5787bac8b20f46
tree406e57c2a1a44b52f46558830652c1be3689479e
parent34a9bcaf8b71771f93fe1f09e0c060767bcb7601
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
libstdc++-v3/ChangeLog
libstdc++-v3/include/std/string_view