#include <userver/rcu/rcu.hpp>
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.
Public Member Functions | |
ReadablePtr (const Variable< T, RcuTraits > &ptr) | |
ReadablePtr (ReadablePtr &&other) noexcept=default | |
ReadablePtr & | operator= (ReadablePtr &&other) noexcept=default |
ReadablePtr (const ReadablePtr &other)=default | |
ReadablePtr & | operator= (const ReadablePtr &other)=default |
const T * | Get () const & |
const T * | Get () && |
const T * | operator-> () const & |
const T * | operator-> () && |
const T & | operator* () const & |
const T & | operator* () && |
|
inlineexplicit |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |