Skip to content

Releases: NuiCpp/traits

v1.1.0 Callable Concept

11 Jan 06:35
6c9caa2

Choose a tag to compare

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.

v1.0.0 Initial Release

29 Dec 02:14
96fdd1a

Choose a tag to compare

Functionality allows for dissection of any kind of functions to get at the parameter types, number of parameters etc for more refined concepts and meta programming uses.