7#ifndef KISROTATINGCACHE_H
8#define KISROTATINGCACHE_H
13#include <boost/container/static_vector.hpp>
18template <
typename Key,
typename Value,
size_t CacheSize>
31 inline std::optional<Value>
find(
const Key &key)
const {
33 if (it->first == key) {
45 boost::container::static_vector<CacheItem, CacheSize>
m_storage;
float value(const T *src, size_t ch)
void push(Key key, Value value)
std::optional< Value > find(const Key &key) const
boost::container::static_vector< CacheItem, CacheSize > m_storage
std::pair< Key, Value > CacheItem