Metafunction giving the piecewise‐construction argument‐pack length.

Synopsis

Declared in <bslstl_pair.h>

template<
    class TYPE,
    class... ARGS>
struct Pair_ConstructionParametersPackLength
    : integral_constant<int, sizeof...(ARGS) + Pair_BslmaIdiom<TYPE>::value>

Description

This component‐private component‐private meta‐function determines the number of elements in a tuple containing parameters for piecewise construction of a bsl::pair member having the specified TYPE. Result value depends on the TYPE, whether it takes a bslma::Allocator* constructor argument and, if so, whether that argument follows an argument of type bsl::allocator_arg_t.

Base Classes

Name

Description

integral_constant<int, sizeof...(ARGS) + Pair_BslmaIdiom<TYPE>::value>

Metafunction representing a compile‐time constant of the specified (template parameter) t_TYPE with the specified (template parameter) t_VALUE.

Type Aliases

Name

Description

type

Alias for this integral_constant specialization.

value_type

Alias for the (template parameter) t_TYPE.

Member Functions

Name

Description

operator()

Return a copy of the template argument t_VALUE.

operator t_TYPE

Return a copy of the template argument t_VALUE.

Static Data Members

Name

Description

value

The compile‐time constant value of this metafunction.

Created with MrDocs