mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-28 05:35:52 +03:00
AK: Add contains_slow method to Stack
This commit is contained in:
parent
e86e59699d
commit
9a0bb8212a
Notes:
sideshowbarker
2024-07-17 12:02:22 +09:00
Author: https://github.com/cflip Commit: https://github.com/SerenityOS/serenity/commit/9a0bb8212a Pull-request: https://github.com/SerenityOS/serenity/pull/16061 Reviewed-by: https://github.com/gmta ✅
@ -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;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user