utility 2026.1.9
A comprehensive C++ utilities library tailored for the development of modern desktop and extended reality (XR) applications.
Loading...
Searching...
No Matches
utility::CacheKey Concept Reference

Concept to constrain cache key type. More...

#include <headers/utility/cache.hpp>

Concept definition

template<typename Key, typename Compare std::less<Key>>
concept utility::CacheKey = requires(const Key &a, const Key &b, Compare comp) {
{ comp(a, b) } -> std::convertible_to<bool>;
}
Concept to constrain cache key type.
Definition cache.hpp:49

Detailed Description

Concept to constrain cache key type.

Template Parameters
KeyCandidate key type.
CompareComparison function type for ordering keys.

Definition at line 49 of file cache.hpp.