Refactor std::basic_string_view members and add noexcept
authorJonathan Wakely <jwakely@redhat.com>
Tue, 24 Oct 2017 13:18:52 +0000 (14:18 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Tue, 24 Oct 2017 13:18:52 +0000 (14:18 +0100)
commit02e2a7d8ef8aaeca05aba0e8ca15ba40ec1f3a53
tree5269736effab23808c7dc9cb5e8db39779e22b55
parentc58a9f350aa76af2bc1a826f2eac371da9edd04e
Refactor std::basic_string_view members and add noexcept

* include/bits/string_view.tcc (find_first_of, find_last_of)
(find_first_not_of, find_last_not_of): Add noexcept.
* include/std/string_view (basic_string_view(const _CharT*))
(basic_string_view(const _CharT*, size_type))
(front, back, remove_prefix, remove_suffix, find, rfind)
(find_first_of, find_first_not_of): Add noexcept.
(at(size_type), _S_compare(size_type, size_type)): Replace conditional
expressions with if statements.
(copy(_CharT*, size_type, size_type), substr(size_type, size_type)):
Use _M_check for length checks.
(compare(basic_string_view)): Reformat.
(_M_check(size_type, const char)): Add noexcept(false).
(_M_limit(size_type, size_type)): Use noexcept not _GLIBCXX_NOEXCEPT.

From-SVN: r254044
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/string_view.tcc
libstdc++-v3/include/std/string_view