Refactor std::basic_string_view members and add noexcept
commit62fb4a897e378cb62fcebbc8305f0d2f449d8b47
authorredi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 24 Oct 2017 13:18:52 +0000 (24 13:18 +0000)
committerredi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 24 Oct 2017 13:18:52 +0000 (24 13:18 +0000)
tree5269736effab23808c7dc9cb5e8db39779e22b55
parent7450bb7c1a2195cacd61a77cfb69d7457531c816
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.

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