HomeManualTopicsTypesSymbols

std::parameter_count_of

number of wanted arguments

Parameter

function
the function to be analyzed

Result

count
the number of arguments the function expects

Description

This attribute returns the number of arguments to use when calling its function. Functions that accept a variable number of arguments will return std::undefined.

Attention: Functions accepting a variable number of arguments might have a minimum and/or maximum number of expected arguments. These numbers cannot be retrieved during runtime!

Implemented by

std_types::c_function the number of arguments to supply in calls to this function
std_types::function the number of arguments to supply in calls to this function