Open Chinese Convert
1.1.1
A project for conversion between Traditional and Simplified Chinese
|
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; }
Optional(T actual)
The constructor of Optional.
Definition: Optional.hpp:31
static Optional< T > Null()
Constructs a null instance.
Definition: Optional.hpp:46
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
A class that wraps type T into a nullable type.
Definition: Optional.hpp:26