Metafunction to compute the specified t_Nth element of the specified t_PARAMS template parameter pack. The Type nested typedef will match the t_Nth element of t_PARAMS, where t_N is zero-based (so that an t_N of zero corresponds to the first parameter.
Declared in <bslmf_nthparameter.h>
template<
std::size_t t_N,
class t_FIRST_PARAM = NthParameter_Sentinel,
class... t_PARAMS>
struct NthParameter;
| Name | Description |
|---|---|
Type | The type of the Nth parameter, computed by recursively stripping off the first parameter until t_N == 0. |
| Name | Description |
|---|---|
NthParameter<0, NthParameter_Sentinel> | Specialization of NthParameter for when t_N exceeds the actual number of parameters. |
NthParameter<0, t_FIRST_PARAM, t_PARAMS...> | Specialization of NthParameter for when t_N is zero. |