Metafunction to compute the specified t_N`th element of the specified `t_PARAMS template parameter pack. The Type nested typedef will match the t_N`th element of `t_PARAMS, where t_N is zero‐based (so that an t_N of zero corresponds to the first parameter.

Synopsis

Declared in <bslmf_nthparameter.h>

template<
    std::size_t t_N,
    class t_FIRST_PARAM = NthParameter_Sentinel,
    class... t_PARAMS>
struct NthParameter;

Type Aliases

Name

Description

Type

The type of the Nth parameter, computed by recursively stripping off the first parameter until t_N == 0.

Specializations

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.

Created with MrDocs