[#BloombergLP-bslmf-Switch-07a1] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslmf.adoc[bslmf]::Switch :relfileprefix: ../../ :mrdocs: This meta‐function, parameterized by an integral `t_SWITCH_SELECTOR` and types `t_T0` up to `t_T9`, provides a single type alias, `Type`, which resolves, through specialization for a particular value `N` of `t_SWITCH_SELECTOR`, to the type `TN`, or to `Nil` if `t_SWITCH_SELECTOR` is negative or larger than the number of template arguments provided for the types. == Synopsis Declared in `<bslmf_switch.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< size_t t_SWITCH_SELECTOR, class... t_TYPES> struct Switch; ---- == Type Aliases [cols="1,4"] |=== | Name| Description | xref:BloombergLP/bslmf/Switch-07a1/Type.adoc[`Type`] | This `Type` is an alias to the parameterized `TN`, where `N` is the integral value of the parameterized `t_SWITCH_SELECTOR`. Note that the first type in the list corresponds to `t_T0`, not `t_T1`. |=== == Specializations [cols="1"] |=== | Name | xref:BloombergLP/bslmf/Switch-04a.adoc[`Switch<0U, t_T0, t_TYPES...>`] | xref:BloombergLP/bslmf/Switch-058.adoc[`Switch<1U, t_T0, t_T1, t_TYPES...>`] | xref:BloombergLP/bslmf/Switch-051.adoc[`Switch<2U, t_T0, t_T1, t_T2, t_TYPES...>`] | xref:BloombergLP/bslmf/Switch-04e.adoc[`Switch<3U, t_T0, t_T1, t_T2, t_T3, t_TYPES...>`] | xref:BloombergLP/bslmf/Switch-0c.adoc[`Switch<4U, t_T0, t_T1, t_T2, t_T3, t_T4, t_TYPES...>`] | xref:BloombergLP/bslmf/Switch-0b.adoc[`Switch<5U, t_T0, t_T1, t_T2, t_T3, t_T4, t_T5, t_TYPES...>`] | xref:BloombergLP/bslmf/Switch-0a.adoc[`Switch<6U, t_T0, t_T1, t_T2, t_T3, t_T4, t_T5, t_T6, t_TYPES...>`] | xref:BloombergLP/bslmf/Switch-00.adoc[`Switch<7U, t_T0, t_T1, t_T2, t_T3, t_T4, t_T5, t_T6, t_T7, t_TYPES...>`] | xref:BloombergLP/bslmf/Switch-07c.adoc[`Switch<8U, t_T0, t_T1, t_T2, t_T3, t_T4, t_T5, t_T6, t_T7, t_T8, t_TYPES...>`] | xref:BloombergLP/bslmf/Switch-07a7.adoc[`Switch<9U, t_T0, t_T1, t_T2, t_T3, t_T4, t_T5, t_T6, t_T7, t_T8, t_T9, t_TYPES...>`] | xref:BloombergLP/bslmf/Switch-0d.adoc[`Switch<t_SWITCH_SELECTOR, t_T0, t_T1, t_T2, t_T3, t_T4, t_T5, t_T6, t_T7, t_T8, t_T9, t_T10, t_TYPES...>`] |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#