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

Satisfied when Type is a reference to a wrapper specialization. More...

#include <wrapper.h>

Concept definition

template<typename Type>
concept wrapper_reference = ::scl::concepts::reference<Type> && wrapper<Type>
Satisfied when Type is a reference to a wrapper specialization.
Definition wrapper.h:39
Satisfied when T is a wrapper specialization.
Definition wrapper.h:20

Detailed Description

Satisfied when Type is a reference to a wrapper specialization.

Combines scl::concepts::reference and wrapper: the type must be both a reference (lvalue or rvalue) and a wrapper instantiation.

Template Parameters
TypeType to check.
static_assert( wrapper_reference<wrapper<int> &>);
static_assert( wrapper_reference<wrapper<int> &&>);
static_assert(!wrapper_reference<int &>);