From 6f059c9d606aa624987f09b014da19f1b09ca1eb Mon Sep 17 00:00:00 2001 From: Lucas CHOLLET Date: Sat, 4 Nov 2023 18:10:33 -0400 Subject: [PATCH] AK: Add the InputBitStream concept This will allow users to abstract away the endianness of the stream they are using. --- AK/BitStream.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/AK/BitStream.h b/AK/BitStream.h index 97da95b9fa7..e7e83ff4ead 100644 --- a/AK/BitStream.h +++ b/AK/BitStream.h @@ -7,6 +7,7 @@ #pragma once #include +#include #include #include #include @@ -427,4 +428,11 @@ public: } }; +template +concept InputBitStream = OneOf; + } + +#if USING_AK_GLOBALLY +using AK::InputBitStream; +#endif