#include <boost/preprocessor/arithmetic/inc.hpp>
#include <boost/preprocessor/config/config.hpp>
#include <boost/preprocessor/control/while.hpp>
#include <boost/preprocessor/list/adt.hpp>
#include <boost/preprocessor/tuple/elem.hpp>
#include <boost/preprocessor/tuple/rem.hpp>
Macros | |
#define | BOOST_PP_LIST_SIZE(list) BOOST_PP_LIST_SIZE_I(list) |
#define | BOOST_PP_LIST_SIZE_I(list) BOOST_PP_TUPLE_ELEM(2, 0, BOOST_PP_WHILE(BOOST_PP_LIST_SIZE_P, BOOST_PP_LIST_SIZE_O, (0, list))) |
#define | BOOST_PP_LIST_SIZE_P(d, rl) BOOST_PP_LIST_SIZE_P_I(BOOST_PP_TUPLE_REM_2 rl) |
#define | BOOST_PP_LIST_SIZE_P_I(im) BOOST_PP_LIST_SIZE_P_II(im) |
#define | BOOST_PP_LIST_SIZE_P_II(r, l) BOOST_PP_LIST_IS_CONS(l) |
#define | BOOST_PP_LIST_SIZE_O(d, rl) BOOST_PP_LIST_SIZE_O_I(BOOST_PP_TUPLE_REM_2 rl) |
#define | BOOST_PP_LIST_SIZE_O_I(im) BOOST_PP_LIST_SIZE_O_II(im) |
#define | BOOST_PP_LIST_SIZE_O_II(r, l) (BOOST_PP_INC(r), BOOST_PP_LIST_REST(l)) |
#define | BOOST_PP_LIST_SIZE_D(d, list) BOOST_PP_LIST_SIZE_D_I(d, list) |
#define | BOOST_PP_LIST_SIZE_D_I(d, list) BOOST_PP_TUPLE_ELEM(2, 0, BOOST_PP_WHILE_ ## d(BOOST_PP_LIST_SIZE_P, BOOST_PP_LIST_SIZE_O, (0, list))) |
#define BOOST_PP_LIST_SIZE | ( | list | ) | BOOST_PP_LIST_SIZE_I(list) |
#define BOOST_PP_LIST_SIZE_D | ( | d, | |
list | |||
) | BOOST_PP_LIST_SIZE_D_I(d, list) |
#define BOOST_PP_LIST_SIZE_D_I | ( | d, | |
list | |||
) | BOOST_PP_TUPLE_ELEM(2, 0, BOOST_PP_WHILE_ ## d(BOOST_PP_LIST_SIZE_P, BOOST_PP_LIST_SIZE_O, (0, list))) |
#define BOOST_PP_LIST_SIZE_I | ( | list | ) | BOOST_PP_TUPLE_ELEM(2, 0, BOOST_PP_WHILE(BOOST_PP_LIST_SIZE_P, BOOST_PP_LIST_SIZE_O, (0, list))) |
#define BOOST_PP_LIST_SIZE_O | ( | d, | |
rl | |||
) | BOOST_PP_LIST_SIZE_O_I(BOOST_PP_TUPLE_REM_2 rl) |
#define BOOST_PP_LIST_SIZE_O_I | ( | im | ) | BOOST_PP_LIST_SIZE_O_II(im) |
#define BOOST_PP_LIST_SIZE_O_II | ( | r, | |
l | |||
) | (BOOST_PP_INC(r), BOOST_PP_LIST_REST(l)) |
#define BOOST_PP_LIST_SIZE_P | ( | d, | |
rl | |||
) | BOOST_PP_LIST_SIZE_P_I(BOOST_PP_TUPLE_REM_2 rl) |
#define BOOST_PP_LIST_SIZE_P_I | ( | im | ) | BOOST_PP_LIST_SIZE_P_II(im) |
#define BOOST_PP_LIST_SIZE_P_II | ( | r, | |
l | |||
) | BOOST_PP_LIST_IS_CONS(l) |