31   Optional(T actual) : isNull(false), data(actual) {}
    36   bool IsNull()
 const { 
return isNull; }
    41   const T& 
Get()
 const { 
return data; }
    68   Optional(TPtr actual) : data(actual) {}
    70   bool IsNull()
 const { 
return data == 
nullptr; }
    72   const TPtr& Get()
 const { 
return data; }
 static Optional< T > Null()
Constructs a null instance. 
Definition: Optional.hpp:46
Definition: BinaryDict.hpp:24
Optional(T actual)
The constructor of Optional. 
Definition: Optional.hpp:31
A class that wraps type T into a nullable type. 
Definition: Optional.hpp:26
const T & Get() const
Returns the containing data of the instance. 
Definition: Optional.hpp:41
bool IsNull() const
Returns true if the instance is null. 
Definition: Optional.hpp:36