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

Detailed Description

A lazy wrapper around utils::SharedReadablePtr that fetches the data on first access.

Definition in file lazy_shared_ptr.hpp.

Go to the source code of this file.

#include <atomic>
#include <functional>
#include <memory>
#include <utility>
#include <userver/engine/sleep.hpp>
#include <userver/utils/assert.hpp>
#include <userver/utils/shared_readable_ptr.hpp>
+ Include dependency graph for lazy_shared_ptr.hpp:

Classes

class  utils::LazySharedPtr< T >
 A lazy wrapper around utils::SharedReadablePtr that fetches the data on first access. More...
 

Namespaces

namespace  utils
 Utilities.
 

Functions

template<typename Cache >
LazySharedPtr< typename Cache::DataType > utils::MakeLazyCachePtr (Cache &cache)
 Make a lazy pointer to the data of a cache.