The BOOST_PP_SET_FIRST_N macro expands to a set of the first n elements of a set.

Usage

BOOST_PP_SET_FIRST_N(n, list)

Arguments

n
The number of elements to extract.
list
The set from which the elements are extracted.

Remarks

This macro extracts n elements from the beginning of set and returns them as a new set

See Also

Requirements

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

Sample Code

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

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

BOOST_PP_SET_FIRST_N(2, SET) // expands to (a)(b)