#include "optional.hpp"
◆ optional() [1/7]
◆ optional() [2/7]
◆ optional() [3/7]
constexpr T * static_addressof(T &ref)
Definition optional.hpp:223
◆ optional() [4/7]
◆ optional() [5/7]
constexpr optional() noexcept
Definition optional.hpp:630
◆ optional() [6/7]
|
inlineexplicitconstexprnoexcept |
◆ optional() [7/7]
◆ ~optional()
◆ operator=() [1/3]
647 {
648 ref = nullptr;
649 return *this;
650 }
◆ operator=() [2/3]
669 {
671 return *this;
672 }
◆ operator=() [3/3]
◆ emplace() [1/2]
◆ emplace() [2/2]
◆ swap()
691 {
692 std::swap(ref,
rhs.ref);
693 }
◆ operator->()
696 {
698 }
#define TR2_OPTIONAL_ASSERTED_EXPRESSION(CHECK, EXPR)
Definition optional.hpp:202
◆ operator*()
◆ value()
704 {
705 return ref ? *ref : (throw bad_optional_access("bad optional access"), *ref);
706 }
◆ operator bool()
|
inlineexplicitconstexprnoexcept |
708 {
709 return ref != nullptr;
710 }
◆ has_value()
712 {
713 return ref != nullptr;
714 }
◆ value_or()
◆ reset()
The documentation for this class was generated from the following file: