|
MGIS
|
a class that may contain a reference to a class More...
#include </home/runner/work/MFrontGenericInterfaceSupport/MFrontGenericInterfaceSupport/include/MGIS/Utilities/OptionalReference.hxx>
Public Types | |
| using | element_type = ValueType |
| using | pointer = ValueType * |
| using | reference = ValueType & |
Public Member Functions | |
| constexpr | OptionalReference (std::nullptr_t) noexcept |
| constexpr | OptionalReference (pointer p) noexcept |
|
template<typename ValueType2 > requires (std::is_convertible<ValueType2*, ValueType*>::value) | |
| constexpr | OptionalReference (OptionalReference< ValueType2 > other) noexcept |
|
template<typename ValueType2 > requires (std::is_convertible<ValueType2*, ValueType*>::value) | |
| constexpr | OptionalReference (std::unique_ptr< ValueType2 > const &other) noexcept |
|
template<typename ValueType2 > requires (std::is_convertible<ValueType2*, ValueType*>::value) | |
| constexpr | OptionalReference (std::shared_ptr< ValueType2 > const &other) noexcept |
| constexpr pointer | get () const noexcept |
| constexpr reference | operator* () const |
| constexpr pointer | operator-> () const noexcept |
| constexpr | operator bool () const noexcept |
| constexpr | operator pointer () const noexcept |
| constexpr pointer | release () noexcept |
| constexpr void | reset (pointer p=nullptr) noexcept |
| constexpr void | swap (OptionalReference &other) noexcept |
a class that may contain a reference to a class