Refactoring graphics

This commit is contained in:
Dynamitos
2023-10-26 18:37:29 +02:00
parent 28e5c9ff01
commit 1ca861459c
113 changed files with 3131 additions and 3221 deletions
+14
View File
@@ -310,6 +310,20 @@ public:
}
return end();
}
template<class Pred>
requires std::predicate<Pred, value_type>
constexpr iterator find(Pred pred) noexcept
{
for (size_type i = 0; i < arraySize; ++i)
{
if (pred(_data[i]))
{
return const_iterator(&_data[i]);
}
}
return end();
}
constexpr allocator_type get_allocator() const noexcept
{
return allocator;