ecor
Loading...
Searching...
No Matches
ecor::receiver_for_sigs Concept Reference

Concept for receivers that can handle an explicitly listed set of completion signatures. More...

#include <ecor.hpp>

Concept definition

template<typename R, typename... Sig>
concept ecor::receiver_for_sigs = receiver< R > && ( ... && _receiver_sig_callable< R, Sig >::value )
Concept for receivers that can handle an explicitly listed set of completion signatures.
Definition: ecor.hpp:909
Concept for receivers, requires that the member type receiver_concept derives from receiver_t,...
Definition: ecor.hpp:838

Detailed Description

Concept for receivers that can handle an explicitly listed set of completion signatures.

Requires that R satisfies the receiver concept and has callable member functions for each of the provided signatures Sig. Unlike receiver_for, the signatures are supplied directly rather than derived from a sender type, which creates more human-friendly error messages when the constraint is not satisfied, as the signatures are explicitly listed in the error rather than being buried inside the sender's type.