#include <userver/rcu/rcu.hpp>
template<typename T, typename RcuTraits>
class rcu::ReadablePtr< T, RcuTraits >
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.
- Examples
- samples/config_service/main.cpp.
Definition at line 233 of file rcu.hpp.
|
| | 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* () && |
◆ ReadablePtr()
template<typename T, typename RcuTraits>
◆ Get() [1/2]
template<typename T, typename RcuTraits>
◆ Get() [2/2]
template<typename T, typename RcuTraits>
◆ operator*() [1/2]
template<typename T, typename RcuTraits>
◆ operator*() [2/2]
template<typename T, typename RcuTraits>
◆ operator->() [1/2]
template<typename T, typename RcuTraits>
◆ operator->() [2/2]
template<typename T, typename RcuTraits>
The documentation for this class was generated from the following files: