#include <boost/preprocessor/arithmetic/dec.hpp>
#include <boost/preprocessor/config/config.hpp>
#include <boost/preprocessor/control/while.hpp>
#include <boost/preprocessor/list/adt.hpp>
#include <boost/preprocessor/list/reverse.hpp>
#include <boost/preprocessor/tuple/elem.hpp>
#include <boost/preprocessor/tuple/rem.hpp>
Macros | |
#define | BOOST_PP_LIST_FIRST_N(count, list) BOOST_PP_LIST_FIRST_N_I(count, list) |
#define | BOOST_PP_LIST_FIRST_N_I(count, list) BOOST_PP_LIST_REVERSE(BOOST_PP_TUPLE_ELEM(3, 2, BOOST_PP_WHILE(BOOST_PP_LIST_FIRST_N_P, BOOST_PP_LIST_FIRST_N_O, (count, list, BOOST_PP_NIL)))) |
#define | BOOST_PP_LIST_FIRST_N_P(d, data) BOOST_PP_LIST_FIRST_N_P_I data |
#define | BOOST_PP_LIST_FIRST_N_P_I(c, l, nl) c |
#define | BOOST_PP_LIST_FIRST_N_O(d, data) BOOST_PP_LIST_FIRST_N_O_D(BOOST_PP_TUPLE_ELEM(3, 0, data), BOOST_PP_TUPLE_ELEM(3, 1, data), BOOST_PP_TUPLE_ELEM(3, 2, data)) |
#define | BOOST_PP_LIST_FIRST_N_O_D(c, l, nl) (BOOST_PP_DEC(c), BOOST_PP_LIST_REST(l), (BOOST_PP_LIST_FIRST(l), nl)) |
#define | BOOST_PP_LIST_FIRST_N_D(d, count, list) BOOST_PP_LIST_FIRST_N_D_I(d, count, list) |
#define | BOOST_PP_LIST_FIRST_N_D_I(d, count, list) BOOST_PP_LIST_REVERSE_D(d, BOOST_PP_TUPLE_ELEM(3, 2, BOOST_PP_WHILE_ ## d(BOOST_PP_LIST_FIRST_N_P, BOOST_PP_LIST_FIRST_N_O, (count, list, BOOST_PP_NIL)))) |
#define BOOST_PP_LIST_FIRST_N | ( | count, | |
list | |||
) | BOOST_PP_LIST_FIRST_N_I(count, list) |
#define BOOST_PP_LIST_FIRST_N_D | ( | d, | |
count, | |||
list | |||
) | BOOST_PP_LIST_FIRST_N_D_I(d, count, list) |
#define BOOST_PP_LIST_FIRST_N_D_I | ( | d, | |
count, | |||
list | |||
) | BOOST_PP_LIST_REVERSE_D(d, BOOST_PP_TUPLE_ELEM(3, 2, BOOST_PP_WHILE_ ## d(BOOST_PP_LIST_FIRST_N_P, BOOST_PP_LIST_FIRST_N_O, (count, list, BOOST_PP_NIL)))) |
#define BOOST_PP_LIST_FIRST_N_I | ( | count, | |
list | |||
) | BOOST_PP_LIST_REVERSE(BOOST_PP_TUPLE_ELEM(3, 2, BOOST_PP_WHILE(BOOST_PP_LIST_FIRST_N_P, BOOST_PP_LIST_FIRST_N_O, (count, list, BOOST_PP_NIL)))) |
#define BOOST_PP_LIST_FIRST_N_O | ( | d, | |
data | |||
) | BOOST_PP_LIST_FIRST_N_O_D(BOOST_PP_TUPLE_ELEM(3, 0, data), BOOST_PP_TUPLE_ELEM(3, 1, data), BOOST_PP_TUPLE_ELEM(3, 2, data)) |
#define BOOST_PP_LIST_FIRST_N_O_D | ( | c, | |
l, | |||
nl | |||
) | (BOOST_PP_DEC(c), BOOST_PP_LIST_REST(l), (BOOST_PP_LIST_FIRST(l), nl)) |
#define BOOST_PP_LIST_FIRST_N_P | ( | d, | |
data | |||
) | BOOST_PP_LIST_FIRST_N_P_I data |
#define BOOST_PP_LIST_FIRST_N_P_I | ( | c, | |
l, | |||
nl | |||
) | c |