"ScL Feature"/
ScL Feature 0.0.1
C++20 composable proxy wrapper with pluggable executor strategy
Loading...
Searching...
No Matches
scl::feature::concepts::compatible_with Concept Reference

Satisfied when Type is compatible with Expected. More...

#include <wrapper.h>

Concept definition

template<typename Expected, typename Type>
Satisfied when Type is compatible with Expected.
Definition wrapper.h:72
constexpr bool is_compatible_with_v
Checks whether Test is compatible with (usable in place of) Expected.
Definition wrapper.h:68

Detailed Description

Satisfied when Type is compatible with Expected.

Two wrappers are compatible when their value and executor types match, meaning one can be constructed directly from the other's executor.

Template Parameters
ExpectedThe target wrapper type.
TypeThe source type to check.
static_assert( compatible_with<W, W>);
Satisfied when T is a wrapper specialization.
Definition wrapper.h:20