mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 23:17:46 +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>
|
||||
class alignas(T) [[nodiscard]] Optional {
|
||||
public:
|
||||
using ValueType = T;
|
||||
|
||||
ALWAYS_INLINE Optional() = default;
|
||||
|
||||
ALWAYS_INLINE Optional(const T& value)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue