summaryrefslogtreecommitdiff
path: root/AK/Optional.h
diff options
context:
space:
mode:
Diffstat (limited to 'AK/Optional.h')
-rw-r--r--AK/Optional.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/AK/Optional.h b/AK/Optional.h
index 1a1708beea..4c27ea545d 100644
--- a/AK/Optional.h
+++ b/AK/Optional.h
@@ -30,6 +30,8 @@
#include <AK/Platform.h>
#include <AK/StdLibExtras.h>
+namespace AK {
+
template<typename T>
class CONSUMABLE(unknown) alignas(T) Optional {
public:
@@ -161,3 +163,7 @@ private:
char m_storage[sizeof(T)];
bool m_has_value { false };
};
+
+}
+
+using AK::Optional;