function_param_limit¶
Header¶
#include <boost/hof/function_param_limit.hpp>
Description¶
The function_param_limit
metafunction retrieves the maximum number of
parameters for a function. For function pointers it returns the number of
parameters. Everything else, it returns SIZE_MAX
, but this can be
changed by annotating the function with the limit decorator.
This is a type trait that inherits from std::integral_constant
.
Synopsis¶
template<class F>
struct function_param_limit
: std::integral_constant<std::size_t, ...>
{};