Template Struct FunctionTypes
Defined in File function_traits_impl_.hpp
Struct Documentation
-
template<typename
Return
, typenameClass
, boolIsConst
, boolIsVariadic
, typename ...Args
>
structripple::detail
::
FunctionTypes
Defines a class for types in a function.
- Template Parameters
Return
: The return type of the function.Class
: The class type of the function.IsConst
: If the function is const.IsVariadic
: If the function is variadic.Args
: The type of the arguments for the function.
Public Types
-
using
ReturnType
= Return Defines the return type of the function.
-
using
ClassType
= Class Defins the class type of the function.
-
template<size_t
I
>
usingArgType
= typename NthElement<I, Args...>::type Defines the type of the Ith argument.
- Template Parameters
I
: The index of the argument to get.
Public Static Attributes
-
constexpr auto
arity
= size_t{sizeof...(Args)} Defines the arity of the function.
-
constexpr auto
is_const
= IsConst Defines if the function is const.
-
constexpr auto
is_variadic
= IsVariadic Defines if the function is variadic.