mirror of
https://github.com/SerenityOS/serenity
synced 2024-07-21 18:15:58 +00:00
AK: Add type alias for AK::Optional
This commit is contained in:
parent
67884f6747
commit
99e1d8a359
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue