detail

Structs

Cache

template<typename T>
struct Cache

The values that cached keeps for one type.

Public Static Functions

static inline std::mutex &mutex()

The lock of slots.

static inline std::map<std::string, std::shared_ptr<Slot>> &slots()

The values by key.

struct Slot

A value, and the lock under which it is loaded.

Public Members

std::mutex mutex
std::shared_ptr<const T> value