1
Fork 0
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:
asynts 2020-09-07 11:53:54 +02:00 committed by Andreas Kling
parent 9c83d6ff46
commit ec1080b18a
9 changed files with 27 additions and 23 deletions

View file

@ -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);