Class that behaves as a nullable reference. Main difference from the pointer - value comparison of pointed values.
Definition in file optional_ref.hpp.
Go to the source code of this file.
#include <optional>
#include <type_traits>
#include <boost/optional/optional_fwd.hpp>
#include <userver/utils/assert.hpp>
Classes | |
class | utils::OptionalRef< T > |
Class that behaves as a nullable reference. Main difference from the pointer - value comparison of pointed values. More... | |
Namespaces | |
namespace | utils |
Utilities. | |
Functions | |
template<class T , class U > | |
constexpr bool | utils::operator== (OptionalRef< T > lhs, OptionalRef< U > rhs) noexcept |
template<class T , class U > | |
constexpr bool | utils::operator!= (OptionalRef< T > lhs, OptionalRef< U > rhs) noexcept |