userver: userver/utils/lazy_shared_ptr.hpp File Reference
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages Concepts
lazy_shared_ptr.hpp File Reference

Your opinion will help to improve our service

Leave a feedback >

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>

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.