Added value_t type to optional.
This commit is contained in:
parent
2af1b5edd5
commit
d52cc6af6e
@ -110,6 +110,8 @@ static constexpr NullOptional NULL_OPTIONAL;
|
|||||||
template<typename TValue>
|
template<typename TValue>
|
||||||
class Optional
|
class Optional
|
||||||
{
|
{
|
||||||
|
public:
|
||||||
|
using value_t = TValue;
|
||||||
private:
|
private:
|
||||||
impl::OptionalStorage<TValue> storage_ = {};
|
impl::OptionalStorage<TValue> storage_ = {};
|
||||||
public:
|
public:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user