ADS
Algorithms and Data Structures
Loading...
Searching...
No Matches
ADS::CoalesceBy< K, M > Struct Template Reference

the coalescing of the messages of one key in an outbox of Mailbox: K()( x ) the key of the message \( x \), and M the map from a key to the place of its last message in an outbox (try_emplace(), clear() and empty() as those of std::unordered_map, or of DenseHashMap and FlatHashTable, which allocate no node per key), by default (void) a std::unordered_map of the keys to std::size_t More...

#include <ADS/parallel/Mailbox.h>

Public types

using KeyOf = K
using Map = M
 < the function of the key

Detailed description

template<class K, class M = void>
struct ADS::CoalesceBy< K, M >

the coalescing of the messages of one key in an outbox of Mailbox: K()( x ) the key of the message \( x \), and M the map from a key to the place of its last message in an outbox (try_emplace(), clear() and empty() as those of std::unordered_map, or of DenseHashMap and FlatHashTable, which allocate no node per key), by default (void) a std::unordered_map of the keys to std::size_t

Member typedef documentation

◆ KeyOf

template<class K, class M = void>
using ADS::CoalesceBy< K, M >::KeyOf = K

◆ Map

template<class K, class M = void>
using ADS::CoalesceBy< K, M >::Map = M

< the function of the key


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