diff options
author | cflip <cflip@cflip.net> | 2022-11-18 10:12:45 -0700 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-11-26 09:38:13 +0100 |
commit | 9a0bb8212af18555bf95d486e0c2c2d11b59af1d (patch) | |
tree | 5001bc0a397980cb26deec93ac704f51609e5125 /AK/Stack.h | |
parent | e86e59699d61a0e13548a8461c5aabf6511fa242 (diff) | |
download | serenity-9a0bb8212af18555bf95d486e0c2c2d11b59af1d.zip |
AK: Add contains_slow method to Stack
Diffstat (limited to 'AK/Stack.h')
-rw-r--r-- | AK/Stack.h | 5 |
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; }; |