userver: userver/utils/optional_ref.hpp File Reference
Loading...
Searching...
No Matches
optional_ref.hpp File Reference

Detailed Description

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>
+ This graph shows which files directly or indirectly include this file:

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