diff options
Diffstat (limited to 'AK/Vector.h')
-rw-r--r-- | AK/Vector.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/AK/Vector.h b/AK/Vector.h index 3cf47f160e..aa5b3f5d46 100644 --- a/AK/Vector.h +++ b/AK/Vector.h @@ -243,6 +243,9 @@ public: return !(*this == other); } + operator Span<T>() { return span(); } + operator Span<const T>() const { return span(); } + bool contains_slow(const T& value) const { for (size_t i = 0; i < size(); ++i) { |