mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 08:27:46 +00:00
Everywhere: Use ReadonlySpan<T> instead of Span<T const>
This commit is contained in:
parent
1c92e6ee9d
commit
63b11030f0
102 changed files with 206 additions and 206 deletions
|
@ -192,7 +192,7 @@ public:
|
|||
return false;
|
||||
}
|
||||
|
||||
[[nodiscard]] bool constexpr starts_with(Span<T const> other) const
|
||||
[[nodiscard]] bool constexpr starts_with(ReadonlySpan<T> other) const
|
||||
{
|
||||
if (size() < other.size())
|
||||
return false;
|
||||
|
@ -250,7 +250,7 @@ public:
|
|||
return TypedTransfer<T>::compare(data(), other.data(), size());
|
||||
}
|
||||
|
||||
ALWAYS_INLINE constexpr operator Span<T const>() const
|
||||
ALWAYS_INLINE constexpr operator ReadonlySpan<T>() const
|
||||
{
|
||||
return { data(), size() };
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue