olp-cpp-sdk  1.22.0
Public Member Functions | List of all members
olp::utils::CacheCost< T > Struct Template Reference

The default cost operator for LruCache. More...

#include <LruCache.h>

Public Member Functions

std::size_t operator() (const T &) const
 Gets the size of the specified object.
 

Detailed Description

template<typename T>
struct olp::utils::CacheCost< T >

The default cost operator for LruCache.

The default implementation returns "1" for every object, which means that each object in the cache is treated as equally sized.

Returns
The non-zero value for the specified object.

The documentation for this struct was generated from the following file: