CXXIter 0.2
Loading...
Searching...
No Matches
CXXIter::util::@33::invocable_byvalue Concept Reference

Concept that checks whether the given invocable type TFn is a function-type that accepts the parameter of types TArgs by value. More...

Concept definition

template<typename TFn, typename... TArgs>
concept CXXIter::util::@33::invocable_byvalue = requires(TFn fn, TArgs... args) {
{ fn(args...) };
{ fn(std::forward<TArgs>(args)...) };
}
Concept that checks whether the given invocable type TFn is a function-type that accepts the paramete...
Definition: Constraints.h:40

Detailed Description

Concept that checks whether the given invocable type TFn is a function-type that accepts the parameter of types TArgs by value.

This concepts only accepts TFn if it takes the argument types by value. Neither taking the parameters as rvalue references, nor as lvalue references is allowed.

Definition at line 40 of file Constraints.h.