first_n.hpp File Reference
`#include <msgpack/preprocessor/arithmetic/dec.hpp>`
`#include <msgpack/preprocessor/config/config.hpp>`
`#include <msgpack/preprocessor/control/while.hpp>`
`#include <msgpack/preprocessor/list/adt.hpp>`
`#include <msgpack/preprocessor/list/reverse.hpp>`
`#include <msgpack/preprocessor/tuple/elem.hpp>`
`#include <msgpack/preprocessor/tuple/rem.hpp>`

Go to the source code of this file.

## Macros

#define | MSGPACK_PP_LIST_FIRST_N(count, list) MSGPACK_PP_LIST_FIRST_N_I(count, list)
#define | MSGPACK_PP_LIST_FIRST_N_I(count, list) MSGPACK_PP_LIST_REVERSE(MSGPACK_PP_TUPLE_ELEM(3, 2, MSGPACK_PP_WHILE(MSGPACK_PP_LIST_FIRST_N_P, MSGPACK_PP_LIST_FIRST_N_O, (count, list, MSGPACK_PP_NIL))))
#define | MSGPACK_PP_LIST_FIRST_N_P(d, data) MSGPACK_PP_LIST_FIRST_N_P_I data
#define | MSGPACK_PP_LIST_FIRST_N_P_I(c, l, nl) c
#define | MSGPACK_PP_LIST_FIRST_N_O(d, data) MSGPACK_PP_LIST_FIRST_N_O_D(MSGPACK_PP_TUPLE_ELEM(3, 0, data), MSGPACK_PP_TUPLE_ELEM(3, 1, data), MSGPACK_PP_TUPLE_ELEM(3, 2, data))
#define | MSGPACK_PP_LIST_FIRST_N_O_D(c, l, nl) (MSGPACK_PP_DEC(c), MSGPACK_PP_LIST_REST(l), (MSGPACK_PP_LIST_FIRST(l), nl))
#define | MSGPACK_PP_LIST_FIRST_N_D(d, count, list) MSGPACK_PP_LIST_FIRST_N_D_I(d, count, list)
#define | MSGPACK_PP_LIST_FIRST_N_D_I(d, count, list) MSGPACK_PP_LIST_REVERSE_D(d, MSGPACK_PP_TUPLE_ELEM(3, 2, MSGPACK_PP_WHILE_ ## d(MSGPACK_PP_LIST_FIRST_N_P, MSGPACK_PP_LIST_FIRST_N_O, (count, list, MSGPACK_PP_NIL))))

## Macro Definition Documentation

## MSGPACK_PP_LIST_FIRST_N

#define MSGPACK_PP_LIST_FIRST_N | ( |  | count,
|  |  | list
| ) |  | MSGPACK_PP_LIST_FIRST_N_I(count, list)

## MSGPACK_PP_LIST_FIRST_N_D

#define MSGPACK_PP_LIST_FIRST_N_D | ( |  | d,
|  |  | count,
|  |  | list
| ) |  | MSGPACK_PP_LIST_FIRST_N_D_I(d, count, list)

## MSGPACK_PP_LIST_FIRST_N_D_I

#define MSGPACK_PP_LIST_FIRST_N_D_I | ( |  | d,
|  |  | count,
|  |  | list
| ) |  | MSGPACK_PP_LIST_REVERSE_D(d, MSGPACK_PP_TUPLE_ELEM(3, 2, MSGPACK_PP_WHILE_ ## d(MSGPACK_PP_LIST_FIRST_N_P, MSGPACK_PP_LIST_FIRST_N_O, (count, list, MSGPACK_PP_NIL))))

## MSGPACK_PP_LIST_FIRST_N_I

#define MSGPACK_PP_LIST_FIRST_N_I | ( |  | count,
|  |  | list
| ) |  | MSGPACK_PP_LIST_REVERSE(MSGPACK_PP_TUPLE_ELEM(3, 2, MSGPACK_PP_WHILE(MSGPACK_PP_LIST_FIRST_N_P, MSGPACK_PP_LIST_FIRST_N_O, (count, list, MSGPACK_PP_NIL))))

## MSGPACK_PP_LIST_FIRST_N_O

#define MSGPACK_PP_LIST_FIRST_N_O | ( |  | d,
|  |  | data
| ) |  | MSGPACK_PP_LIST_FIRST_N_O_D(MSGPACK_PP_TUPLE_ELEM(3, 0, data), MSGPACK_PP_TUPLE_ELEM(3, 1, data), MSGPACK_PP_TUPLE_ELEM(3, 2, data))

## MSGPACK_PP_LIST_FIRST_N_O_D

#define MSGPACK_PP_LIST_FIRST_N_O_D | ( |  | c,
|  |  | l,
|  |  | nl
| ) |  | (MSGPACK_PP_DEC(c), MSGPACK_PP_LIST_REST(l), (MSGPACK_PP_LIST_FIRST(l), nl))

## MSGPACK_PP_LIST_FIRST_N_P

#define MSGPACK_PP_LIST_FIRST_N_P | ( |  | d,
|  |  | data
| ) |  | MSGPACK_PP_LIST_FIRST_N_P_I data

## MSGPACK_PP_LIST_FIRST_N_P_I

#define MSGPACK_PP_LIST_FIRST_N_P_I | ( |  | c,
|  |  | l,
|  |  | nl
| ) |  | c