VCTR
Loading...
Searching...
No Matches
vctr::is::functionWithSignature Concept Reference

Constrains Fn to be a function with an exact function signature. More...

Concept definition

template<class Fn, class Signature>
concept vctr::is::functionWithSignature = detail::FunctionWithSignature<Fn, Signature>::value
Constrains Fn to be a function with an exact function signature.
Definition: FunctionConcepts.h:70

Detailed Description

Constrains Fn to be a function with an exact function signature.

Example:

template <is::functionWithSignature<bool (int)> Fn>
void foo (Fn&& fn)

The example code above will only accept callable types that have the exact signature specified. This means, e.g. these functions

bool fn1 (const int&);
const bool& fn2 (int);

would not satisfy the constraint in the example above.