diff --git a/AK/Span.h b/AK/Span.h index 7210caa267..b61bf079de 100644 --- a/AK/Span.h +++ b/AK/Span.h @@ -210,7 +210,7 @@ public: return size(); } - [[nodiscard]] bool constexpr contains_slow(T const& value) const + [[nodiscard]] constexpr bool contains_slow(T const& value) const { for (size_t i = 0; i < size(); ++i) { if (at(i) == value) @@ -219,7 +219,7 @@ public: return false; } - [[nodiscard]] bool constexpr starts_with(ReadonlySpan other) const + [[nodiscard]] constexpr bool starts_with(ReadonlySpan other) const { if (size() < other.size()) return false; @@ -227,7 +227,7 @@ public: return TypedTransfer::compare(data(), other.data(), other.size()); } - [[nodiscard]] size_t constexpr matching_prefix_length(ReadonlySpan other) const + [[nodiscard]] constexpr size_t matching_prefix_length(ReadonlySpan other) const { auto maximum_length = min(size(), other.size());