26 namespace astrotypes {
64 if(!_is_set)
return !opt._is_set;
65 if(!opt._is_set)
return false;
66 return _val == opt._val;
72 return !(*
this == opt);
78 if(!_is_set)
return false;
85 return !(*
this == opt);
129 if(!_is_set)
return !opt._is_set;
130 if(!opt._is_set)
return false;
131 return _val == opt._val;
136 return !(*
this == opt);
141 if(!_is_set)
return false;
147 return !(*
this == opt);
void reset()
return to unset state
T const & operator*() const
return the value
A simplified, faster, but less secure and less versatile version of boost::optional.
bool is_set() const
if the value has been explicitly set then return true
bool operator!=(Optional const &) const
bool operator==(Optional const &) const
compare two Optional wrapped parameters