|
Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
|
Default comparator for pair types in hash maps. More...
#include <ahDry.H>
Public Member Functions | |
| Dft_Pair_Cmp (Cmp __cmp=Cmp()) | |
| bool | operator() (const std::pair< Key, Data > &p1, const std::pair< Key, Data > &p2) const noexcept |
| Pair vs Pair comparison. | |
| bool | operator() (const std::pair< Key, Data > &p, const Key &k) const noexcept |
| Heterogeneous: Pair vs Key. | |
| bool | operator() (const Key &k, const std::pair< Key, Data > &p) const noexcept |
| Heterogeneous: Key vs Pair. | |
Public Attributes | |
| Cmp | cmp |
Default comparator for pair types in hash maps.
Wraps a key comparator to work with std::pair<Key, Data>. Supports heterogeneous comparison (Pair vs Key).
| Key | Key type |
| Data | Data type |
| Cmp | Key comparator (default: std::equal_to<Key>) |
|
inline |
|
inlinenoexcept |
Heterogeneous: Key vs Pair.
Definition at line 209 of file ahDry.H.
References Aleph::Dft_Pair_Cmp< Key, Data, Cmp >::cmp, and Aleph::maps().
|
inlinenoexcept |
Heterogeneous: Pair vs Key.
Definition at line 202 of file ahDry.H.
References Aleph::Dft_Pair_Cmp< Key, Data, Cmp >::cmp, and Aleph::maps().
|
inlinenoexcept |
Pair vs Pair comparison.
Definition at line 195 of file ahDry.H.
References Aleph::Dft_Pair_Cmp< Key, Data, Cmp >::cmp.
| Cmp Aleph::Dft_Pair_Cmp< Key, Data, Cmp >::cmp |
Definition at line 191 of file ahDry.H.
Referenced by Aleph::Dft_Pair_Cmp< Key, Data, Cmp >::operator()(), Aleph::Dft_Pair_Cmp< Key, Data, Cmp >::operator()(), and Aleph::Dft_Pair_Cmp< Key, Data, Cmp >::operator()().