PR libstdc++/70483 make std::experimental::string_view fully constexpr
authorJonathan Wakely <jwakely@redhat.com>
Tue, 12 Sep 2017 13:31:20 +0000 (14:31 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Tue, 12 Sep 2017 13:31:20 +0000 (14:31 +0100)
commit2be7a166a93dd2e520476235df013e2900c283c9
treef41c5910e09863c400746a60205e2fd4477ee978
parentc43f427972be6aecd3c85b854cdf601feb816316
PR libstdc++/70483 make std::experimental::string_view fully constexpr

PR libstdc++/70483
* include/experimental/bits/string_view.tcc (basic_string_view::find)
(basic_string_view::rfind, basic_string_view::find_first_of)
(basic_string_view::find_last_of, basic_string_view::find_first_not_of)
(basic_string_view::find_last_not_of): Add constexpr specifier.
* include/experimental/string_view (basic_string_view::remove_prefix)
(basic_string_view::remove_suffix, basic_string_view::swap)
(basic_string_view::compare, basic_string_view::find)
(basic_string_view::rfind, basic_string_view::find_first_of)
(basic_string_view::find_last_of, basic_string_view::find_first_not_of)
(basic_string_view::find_last_not_of, operator==, operator!=)
(operator<, operator>, operator<=, operator>=): Likewise.
* testsuite/experimental/string_view/operations/compare/char/70483.cc:
New.

From-SVN: r252017
libstdc++-v3/ChangeLog
libstdc++-v3/include/experimental/bits/string_view.tcc
libstdc++-v3/include/experimental/string_view
libstdc++-v3/testsuite/experimental/string_view/operations/compare/char/70483.cc [new file with mode: 0644]