]> git.ipfire.org Git - thirdparty/gcc.git/commit
LWG 3040: define starts_with/ends_with as proposed
authorredi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 18 Dec 2018 15:34:43 +0000 (15:34 +0000)
committerredi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 18 Dec 2018 15:34:43 +0000 (15:34 +0000)
commitfa4c16317563cec9a1a7e3ee816b841eb9822967
tree406e57c2a1a44b52f46558830652c1be3689479e
parent776cdb864cbdb67086a9783ecf670750286d53a6
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@267234 138bc75d-0d04-0410-961f-82ee72b054a4
libstdc++-v3/ChangeLog
libstdc++-v3/include/std/string_view