The BOOST_PP_SET_ENUM macro enumerates the elements in a set.

Usage

BOOST_PP_SET_ENUM(set)

Arguments

set
The set from whose elements are to be enumerated.

Remarks

This macro expands to a comma-separated list of the elements in set.  For example, BOOST_PP_SET_ENUM((x)(y)(z)) expands to...
x, y, z

Requirements

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

Sample Code

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

#define SET (B)(O)(O)(S)(T)

BOOST_PP_SET_ENUM(SET) // expands to B, O, O, S, T