mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 12:37:44 +00:00
AK: Add type alias for AK::Optional
This commit is contained in:
parent
67884f6747
commit
99e1d8a359
1 changed files with 2 additions and 0 deletions
|
@ -36,6 +36,8 @@ namespace AK {
|
||||||
template<typename T>
|
template<typename T>
|
||||||
class alignas(T) [[nodiscard]] Optional {
|
class alignas(T) [[nodiscard]] Optional {
|
||||||
public:
|
public:
|
||||||
|
using ValueType = T;
|
||||||
|
|
||||||
ALWAYS_INLINE Optional() = default;
|
ALWAYS_INLINE Optional() = default;
|
||||||
|
|
||||||
ALWAYS_INLINE Optional(const T& value)
|
ALWAYS_INLINE Optional(const T& value)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue