libGimbal 0.1.0
C17-Based Extended Standard Library and Cross-Language Runtime Framework
Loading...
Searching...
No Matches
gbl::impl::HashMapEqualToAdapter< K, V, P > Struct Template Reference

Public Member Functions

 HashMapEqualToAdapter (const P &pred_=P())
 
bool operator() (const std::pair< K, V > &lhs, const std::pair< K, V > &rhs) const
 

Data Fields

const Ppred
 

Detailed Description

template<typename K, typename V, typename P>
struct gbl::impl::HashMapEqualToAdapter< K, V, P >

Definition at line 140 of file gimbal_hash_map.hpp.

Constructor & Destructor Documentation

◆ HashMapEqualToAdapter()

template<typename K , typename V , typename P >
gbl::impl::HashMapEqualToAdapter< K, V, P >::HashMapEqualToAdapter ( const P pred_ = P())
inline

Definition at line 143 of file gimbal_hash_map.hpp.

143 :
144 pred(pred_) {}

Member Function Documentation

◆ operator()()

template<typename K , typename V , typename P >
bool gbl::impl::HashMapEqualToAdapter< K, V, P >::operator() ( const std::pair< K, V > &  lhs,
const std::pair< K, V > &  rhs 
) const
inline

Definition at line 146 of file gimbal_hash_map.hpp.

146 {
147 return pred(lhs.first, rhs.first);
148 }

Field Documentation

◆ pred

Definition at line 141 of file gimbal_hash_map.hpp.


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