24 #ifndef PSS_ASTROTYPES_UTILS_OPTIONAL_H
25 #define PSS_ASTROTYPES_UTILS_OPTIONAL_H
29 namespace astrotypes {
46 inline operator T&() {
return _val; }
94 inline operator bool&() {
return _val; }
95 inline operator bool const&()
const {
return _val; }
129 #endif // PSS_ASTROTYPES_UTILS_OPTIONAL_H
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