mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 19:47:34 +00:00
Refactor: Replace usages of FixedArray with Vector.
This commit is contained in:
parent
9c83d6ff46
commit
ec1080b18a
9 changed files with 27 additions and 23 deletions
|
@ -174,6 +174,15 @@ public:
|
|||
}
|
||||
}
|
||||
|
||||
bool contains_slow(const T& value) const
|
||||
{
|
||||
for (size_t i = 0; i < size(); ++i) {
|
||||
if (at(i) == value)
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
ALWAYS_INLINE const T& at(size_t index) const
|
||||
{
|
||||
ASSERT(index < this->m_size);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue