Dash Core Source Documentation (0.16.0.1)
Find detailed information regarding the Dash Core source code.
unordered_lru_cache.h
Go to the documentation of this file.
10 template<typename Key, typename Value, typename Hasher, size_t MaxSize = 0, size_t TruncateThreshold = 0>
22 explicit unordered_lru_cache(size_t _maxSize = MaxSize, size_t _truncateThreshold = TruncateThreshold) :
Definition: unordered_lru_cache.h:11
unordered_lru_cache(size_t _maxSize=MaxSize, size_t _truncateThreshold=TruncateThreshold)
Definition: unordered_lru_cache.h:22
void insert(const Key &key, const Value &v)
Definition: unordered_lru_cache.h:49
void truncate_if_needed()
Definition: unordered_lru_cache.h:86
void _emplace(const Key &key, Value2 &&v)
Definition: unordered_lru_cache.h:32
std::unordered_map< Key, std::pair< Value, int64_t >, Hasher > MapType
Definition: unordered_lru_cache.h:14
void emplace(const Key &key, Value &&v)
Definition: unordered_lru_cache.h:44