#include <userver/rcu/rcu.hpp>
Public Member Functions | |
ReadablePtr (const Variable< T, RcuTraits > &ptr) | |
ReadablePtr (ReadablePtr< T, RcuTraits > &&other) noexcept | |
ReadablePtr & | operator= (ReadablePtr< T, RcuTraits > &&other) noexcept |
ReadablePtr (const ReadablePtr< T, RcuTraits > &other) | |
ReadablePtr & | operator= (const ReadablePtr< T, RcuTraits > &other) |
const T * | Get () const & |
const T * | Get () && |
const T * | operator-> () const & |
const T * | operator-> () && |
const T & | operator* () const & |
const T & | operator* () && |
Reader smart pointer for rcu::Variable<T>. You may use operator*() or operator->() to do something with the stored value. Once created, ReadablePtr references the same immutable value: if Variable's value is changed during ReadablePtr lifetime, it will not affect value referenced by ReadablePtr.
|
inlineexplicit |
|
inlinenoexcept |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlinenoexcept |