1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 09:07:45 +00:00

AK: Bring back FixedArray<T>

Let's bring this class back, but without the confusing resize() API.
A FixedArray<T> is simply a fixed-size array of T.

The size is provided at run-time, unlike Array<T> where the size is
provided at compile-time.
This commit is contained in:
Andreas Kling 2021-07-11 17:16:13 +02:00
parent 846685fca2
commit 88c8451973
4 changed files with 145 additions and 0 deletions

View file

@ -84,6 +84,9 @@ using OrderedHashMap = HashMap<K, V, KeyTraits, true>;
template<typename T>
class Badge;
template<typename T>
class FixedArray;
template<typename>
class Function;
@ -132,6 +135,7 @@ using AK::CircularDuplexStream;
using AK::CircularQueue;
using AK::DoublyLinkedList;
using AK::DuplexMemoryStream;
using AK::FixedArray;
using AK::FlyString;
using AK::Function;
using AK::HashMap;