The BOOST_PP_SET_SUBSET macro expands to a subset of elements in a set.

Usage

BOOST_PP_SET_SUBSET(set, i, len)

Arguments

set
The set whose size is to be calculated.
i
The index of the first element of the subset to be extracted.
len
The length of the subset to be extracted.

Remarks

This macro expands to a set extracted from set.

Requirements

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

Sample Code

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

#define SET (0)(1)(2)(3)(4)(5)

BOOST_PP_SET_SUBSET(SET, 2, 3) // expands to (2)(3)(4)