| Home | Libraries | People | FAQ | More

## Macro BOOST_VARIANT_ENUM_PARAMS

BOOST_VARIANT_ENUM_PARAMS — Enumerate parameters for use with variant.

## Synopsis

    BOOST_VARIANT_ENUM_PARAMS(param)

## Description

Expands to a comma-separated sequence of length `BOOST_VARIANT_LIMIT_TYPES`, where each element in the sequence consists of the concatenation of param with its zero-based index into the sequence. That is, `param ## 0, param ## 1, ..., param ## BOOST_VARIANT_LIMIT_TYPES - 1`.

Rationale: This macro greatly simplifies for the user the process of declaring `variant` types in function templates or explicit partial specializations of class templates, as shown in the tutorial.

Last revised: , at GMT | Copyright © 2002, 2003 Eric Friedman, Itay Maman

Macro BOOST_VARIANT_LIMIT_TYPES |  | Macro BOOST_VARIANT_ENUM_SHIFTED_PARAMS