Skip to content

v1.1.0 Callable Concept

Latest

Choose a tag to compare

@5cript 5cript released this 11 Jan 06:35
6c9caa2

Ads these 3 concepts:

  • Callable<T>: Anything that looks like a function. https://en.cppreference.com/w/cpp/named_req/Callable.html - Useful when you want to constrain a function argument to anything function with any amount of arguments of any type.
  • CallableOfArity<T, unsigned>: Callable & the function takes an exact amount of parameters.
  • CallableOfAtLeastArity<T, unsigned>: Callable & the function takes at least the given amount of parameters.