Cachemere
Modular Caching Library for C++
|
1 #ifndef CACHEMERE_MEASUREMENT_H
2 #define CACHEMERE_MEASUREMENT_H
10 template<
typename T>
struct Size {
11 template<
typename V>
size_t operator()(
const V&
object)
const;
16 template<
typename V>
size_t operator()(
const V&
object)
const;
22 template<
typename V>
size_t operator()(
const V&
object)
const;
25 [[nodiscard]]
size_t round_up(
const size_t value)
const;
30 #include "measurement.hpp"
Get the size of an object via a user-defined size() method.
Definition: measurement.h:10
Utilities for measuring cached items.
Definition: measurement.h:7
Get the size of an object via a user-defined capacity() method.
Definition: measurement.h:20
Get the size of an object via sizeof().
Definition: measurement.h:15