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>
template<
size_t t_SWITCH_SELECTOR,
class... t_TYPES>
struct Switch;
Type Aliases
Name |
Description |
This |