summaryrefslogtreecommitdiff
path: root/AK
diff options
context:
space:
mode:
authorcflip <cflip@cflip.net>2022-11-18 10:12:45 -0700
committerAndreas Kling <kling@serenityos.org>2022-11-26 09:38:13 +0100
commit9a0bb8212af18555bf95d486e0c2c2d11b59af1d (patch)
tree5001bc0a397980cb26deec93ac704f51609e5125 /AK
parente86e59699d61a0e13548a8461c5aabf6511fa242 (diff)
downloadserenity-9a0bb8212af18555bf95d486e0c2c2d11b59af1d.zip
AK: Add contains_slow method to Stack
Diffstat (limited to 'AK')
-rw-r--r--AK/Stack.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/AK/Stack.h b/AK/Stack.h
index 907b7aa778..830387af23 100644
--- a/AK/Stack.h
+++ b/AK/Stack.h
@@ -63,6 +63,11 @@ public:
return m_stack.last();
}
+ bool contains_slow(T const& value) const
+ {
+ return m_stack.contains_slow(value);
+ }
+
private:
Vector<T, stack_size> m_stack;
};