The BOOST_PP_SET_TO_ARRAY macro converts a set to an array.

Usage

BOOST_PP_SET_TO_ARRAY(set)

Arguments

set
The set to be converted.

Requirements

Header:  <boost/preprocessor/set/to_array.hpp>

Sample Code

#include <boost/preprocessor/set/to_array.hpp>

#define SET (a)(b)(c)

BOOST_PP_SET_TO_ARRAY(SET) // expands to (3, (a, b, c))