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 ✅
1 changed files with 5 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue