1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-29 04:07:34 +00:00

AK: Add an ArbitrarySizedEnum template

This is an enum-like type that works with arbitrary sized storage > u64,
which is the limit for a regular enum class - which limits it to 64
members when needing bit field behavior.

Co-authored-by: Ali Mohammad Pur <mpfard@serenityos.org>
This commit is contained in:
Linus Groh 2022-03-27 12:48:12 +01:00 committed by Andreas Kling
parent 8b2361e362
commit 22308e52cf
3 changed files with 248 additions and 0 deletions

View file

@ -2,6 +2,7 @@ set(AK_TEST_SOURCES
TestFixedPoint.cpp
TestAllOf.cpp
TestAnyOf.cpp
TestArbitrarySizedEnum.cpp
TestArray.cpp
TestAtomic.cpp
TestBadge.cpp