The BOOST_PP_SET_REMOVE macro removes an element from a set.

Usage

BOOST_PP_SET_REMOVE(set, i)

Arguments

set
The set from which an element is to be removed.
i
The zero-based position in set of the element to be removed.  Valid values range from 0 to BOOST_PP_SET_SIZE(set) - 1.

Remarks

This macro returns set after removing the element at index i.

Requirements

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

Sample Code

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

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

BOOST_PP_SET_REMOVE(SET, 2) // expands to (a)(b)(c)