ADS
Algorithms and Data Structures
Loading...
Searching...
No Matches
ADS::MailboxCoalescing Concept Reference

a policy of the coalescing of Mailbox for the messages Msg: NoCoalescing, or CoalesceBy< K , M > with K a function object made by default that gives the key of a message, and a map from the key to a place of std::size_t by try_emplace(), clear() and empty() More...

#include <ADS/parallel/Mailbox.h>

Concept definition

template< class C , class Msg >
std::same_as< C , NoCoalescing > ||
( detail::CoalescePolicy< C >::on &&
std::default_initializable<
typename detail::CoalescePolicy< C >::KeyOf > &&
std::invocable< const typename detail::CoalescePolicy< C >::KeyOf & ,
const Msg & > &&
requires( typename detail::Coalescing< C , Msg >::Map & m ,
const typename detail::Coalescing< C , Msg >::Key & k ,
std::size_t i )
{
{
detail::mappedOf( m.try_emplace( k , i ).first )
} -> std::same_as< std::size_t & >;
{ m.try_emplace( k , i ).second } -> std::convertible_to< bool >;
m.clear();
{ m.empty() } -> std::convertible_to< bool >;
} )
a policy of the coalescing of Mailbox for the messages Msg: NoCoalescing, or CoalesceBy< K ,...
Definition Mailbox.h:263

Detailed description

a policy of the coalescing of Mailbox for the messages Msg: NoCoalescing, or CoalesceBy< K , M > with K a function object made by default that gives the key of a message, and a map from the key to a place of std::size_t by try_emplace(), clear() and empty()