userver: userver/utils/cached_hash.hpp File Reference
⚠️ This is the documentation for an old userver version. Click here to switch to the latest version.
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages Concepts
cached_hash.hpp File Reference

Detailed Description

Holds the key and its hash for faster comparisons and hashing.

Definition in file cached_hash.hpp.

Go to the source code of this file.

#include <functional>
#include <type_traits>
+ Include dependency graph for cached_hash.hpp:
+ This graph shows which files directly or indirectly include this file:

Classes

struct  utils::CachedHash< Key >
 Holds the key and its hash for faster comparisons and hashing. More...
 
class  utils::CachedHashKeyEqual< Equal, class >
 Compares utils::CachedHash only by keys. More...
 
class  utils::CachedHashKeyEqual< Equal, std::false_type >
 
struct  std::hash<::utils::CachedHash< T > >
 

Namespaces

namespace  utils
 Utilities.
 

Functions

template<class T >
constexpr bool utils::operator== (const CachedHash< T > &x, const CachedHash< T > &y)
 Compares utils::CachedHash by hash first and then by keys.
 
template<class T >
constexpr bool utils::operator!= (const CachedHash< T > &x, const CachedHash< T > &y)
 Compares utils::CachedHash by hash first and then by keys.