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

Checks if something qualifies as an option to a select statement Allows defining custom options and cases. More...

#include <traits.hpp>

Concept definition

template<typename T>
concept mtcore::thread::SelectOption = requires(T &t, const T &ct) {
{ t.attempt() } -> std::same_as<Result<void, SelectOptionErrors>>;
{ ct.prevents_deadlock() } -> std::same_as<bool>;
}
Checks if something qualifies as an option to a select statement Allows defining custom options and c...

Detailed Description

Checks if something qualifies as an option to a select statement Allows defining custom options and cases.

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