userver: rcu::DefaultRcuMapTraits< Key, Value > Struct Template Reference
Loading...
Searching...
No Matches
rcu::DefaultRcuMapTraits< Key, Value > Struct Template Reference

#include <userver/rcu/rcu_map.hpp>

Detailed Description

template<typename Key, typename Value>
struct rcu::DefaultRcuMapTraits< Key, Value >

Default RcuMap traits. Member types:

  • Hash is a functor type that returns hash value for Key
  • keyEqual is a functor type that provide equality test for two values of type Key
  • MutexType is a writer's mutex type that has to be used to protect structure on update

Definition at line 41 of file rcu_map.hpp.

Public Types

using Hash = std::hash<Key>
 
using KeyEqual = std::equal_to<Key>
 
using MutexType = engine::Mutex
 

Member Typedef Documentation

◆ Hash

template<typename Key , typename Value >
using rcu::DefaultRcuMapTraits< Key, Value >::Hash = std::hash<Key>

Definition at line 42 of file rcu_map.hpp.

◆ KeyEqual

template<typename Key , typename Value >
using rcu::DefaultRcuMapTraits< Key, Value >::KeyEqual = std::equal_to<Key>

Definition at line 43 of file rcu_map.hpp.

◆ MutexType

template<typename Key , typename Value >
using rcu::DefaultRcuMapTraits< Key, Value >::MutexType = engine::Mutex

Definition at line 44 of file rcu_map.hpp.


The documentation for this struct was generated from the following files: