libstdc++: Optimize std::string_view::find [PR 66414]
authorJonathan Wakely <jwakely@redhat.com>
Wed, 27 Jan 2021 13:21:52 +0000 (13:21 +0000)
committerJonathan Wakely <jwakely@redhat.com>
Wed, 27 Jan 2021 13:45:52 +0000 (13:45 +0000)
commita199da782fc165fd45f42a15cc9020994efd455d
treeda53032078216ce8fad7bfa72213bc8fd4ee7e30
parent9d66505a5df3c96441dc4f19efd6e1158c5a4640
libstdc++: Optimize std::string_view::find [PR 66414]

This reuses the code from std::string::find, which was improved by
r244225, but string_view was not changed to match.

libstdc++-v3/ChangeLog:

PR libstdc++/66414
* include/bits/string_view.tcc
(basic_string_view::find(const CharT*, size_type, size_type)):
Optimize.
libstdc++-v3/include/bits/string_view.tcc