The BOOST_PP_SET_SIZE macro expands to the size of a set.

Usage

BOOST_PP_SET_SIZE(set)

Arguments

set
The set whose size is to be calculated.

Requirements

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

Sample Code

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

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

BOOST_PP_SET_SIZE(SET) // expands to 3