mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-01-31 03:27:39 +00:00
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:
parent
03b476f943
commit
f3effcb703
1 changed files with 0 additions and 1 deletions
|
@ -226,7 +226,6 @@ class string
|
||||||
append(s.p, s.n);
|
append(s.p, s.n);
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO(mrdomino): explicit?
|
|
||||||
inline operator string_view() const noexcept
|
inline operator string_view() const noexcept
|
||||||
{
|
{
|
||||||
return string_view(data(), size());
|
return string_view(data(), size());
|
||||||
|
|
Loading…
Reference in a new issue