MT Core (C++)
Core library for replacing C++ standard in project usage
Loading...
Searching...
No Matches
mtcore::thread::Sender Concept Reference

Checks if messages can be sent to something (e.g. More...

#include <traits.hpp>

Concept definition

template<typename T>
concept mtcore::thread::Sender = requires(T &t, const typename T::Message &m) {
{ t.try_send(m) } -> ResultLikeWithVoid;
}
Represents a type that fulfills the "result" contract while having no success value Does NOT check th...
Checks if messages can be sent to something (e.g.

Detailed Description

Checks if messages can be sent to something (e.g.

channels) Anything that implements this concept should be non-blocking and may fail to send

Definition at line 59 of file thread/mtcore_thread/traits.hpp.