#include <userver/utils/optional_ref.hpp>
Class that behaves as a nullable reference. Main difference from the pointer - value comparison of pointed values.
Initializes from reference to a T or from optional<T>.
Once the reference is constructed it can not be changed to point to different address.
Definition at line 27 of file optional_ref.hpp.
Public Types | |
| using | value_type = T |
| using utils::OptionalRef< T >::value_type = T |
Definition at line 29 of file optional_ref.hpp.
|
inlineconstexprnoexcept |
Definition at line 34 of file optional_ref.hpp.
|
inlineconstexprnoexcept |
Definition at line 38 of file optional_ref.hpp.
|
inlineexplicitconstexprnoexcept |
Definition at line 44 of file optional_ref.hpp.
|
inlineexplicitconstexprnoexcept |
Definition at line 47 of file optional_ref.hpp.
|
inlineexplicitconstexprnoexcept |
Definition at line 50 of file optional_ref.hpp.
|
inlineexplicitconstexprnoexcept |
Definition at line 55 of file optional_ref.hpp.
|
inlineexplicitconstexprnoexcept |
Definition at line 58 of file optional_ref.hpp.
|
inlineexplicitconstexprnoexcept |
Definition at line 61 of file optional_ref.hpp.
|
inlineconstexprnoexcept |
Definition at line 65 of file optional_ref.hpp.
|
inlineexplicitconstexprnoexcept |
Definition at line 66 of file optional_ref.hpp.
|
inlineconstexpr |
Definition at line 73 of file optional_ref.hpp.
|
inlineconstexpr |
Definition at line 68 of file optional_ref.hpp.
|
inlineconstexpr |
Definition at line 78 of file optional_ref.hpp.
|
inlineconstexpr |
Definition at line 87 of file optional_ref.hpp.