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

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

#include <traits.hpp>

Concept definition

template<typename T>
concept mtcore::thread::SenderBlockGrow = requires(T &t, Allocator &a) {
{ t.send_block(a, {}) } -> ResultLikeWithVoid;
} && SenderBlock<T>
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.
Represents a memory allocator Exact behavior depends on the underlying VTable used Should use the a_*...

Detailed Description

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

channels) in a blocking manner Allocation is allowed to grow the underlying Queue Anything that implements this concept should be non-blocking and may fail to send

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