abst_ext.hpp
Go to the documentation of this file.
T unsafe_from_abst_ext() const
Unsafely converts a value from an extended value assuming it is present.
Definition: abst_ext.hpp:54
bool is_present() const
Checks for the presence of a value.
Definition: abst_ext.hpp:85
bool is_absent() const
Checks for the absence of a value.
Definition: abst_ext.hpp:79
abst_ext()
The constructor with an absent value.
Definition: abst_ext.hpp:39
abst_ext(const T &val)
The constructor with a present value.
Definition: abst_ext.hpp:36
friend bool is_present(const abst_ext &absval)
Checks for the presence of a value.
Definition: abst_ext.hpp:88
friend void set_val(abst_ext &absval, const T &val)
Sets the value.
Definition: abst_ext.hpp:72
friend void set_abst(abst_ext &absval)
Sets absent.
Definition: abst_ext.hpp:66
T from_abst_ext(const T &defval) const
Converts a value from an extended value, returning a default value if absent.
Definition: abst_ext.hpp:42
friend T unsafe_from_abst_ext(const abst_ext &absval)
Unsafely converts a value from an extended value assuming it is present.
Definition: abst_ext.hpp:57
friend T from_abst_ext(const abst_ext &absval, const T &defval)
Converts a value from an extended value, returning a default value if absent.
Definition: abst_ext.hpp:48
friend bool is_absent(const abst_ext &absval)
Checks for the absence of a value.
Definition: abst_ext.hpp:82
Generated by Doxygen 1.8.11