AK: Add type alias for AK::Optional

This commit is contained in:
Timothy Flynn 2021-04-15 10:32:48 -04:00 committed by Andreas Kling
parent 67884f6747
commit 99e1d8a359
Notes: sideshowbarker 2024-07-18 20:15:52 +09:00

View file

@ -36,6 +36,8 @@ namespace AK {
template<typename T>
class alignas(T) [[nodiscard]] Optional {
public:
using ValueType = T;
ALWAYS_INLINE Optional() = default;
ALWAYS_INLINE Optional(const T& value)