One more SSO erratum from #1199

Making a string_view from a string appears to take about 1.3ns no matter
what. 100% definitely no point deviating from the STL API over that.
This commit is contained in:
Jōshin 2024-06-06 18:01:26 -07:00
parent 03b476f943
commit f3effcb703
No known key found for this signature in database

View file

@ -226,7 +226,6 @@ class string
append(s.p, s.n);
}
// TODO(mrdomino): explicit?
inline operator string_view() const noexcept
{
return string_view(data(), size());