The BOOST_PP_SEQ_SUBSEQ macro expands to a subseq of elements in a seq.

Usage

BOOST_PP_SEQ_SUBSEQ(seq, i, len)

Arguments

seq
The seq whose size is to be calculated.
i
The index of the first element of the subseq to be extracted.
len
The length of the subseq to be extracted.

Remarks

This macro expands to a seq extracted from seq.

Requirements

Header:  <boost/preprocessor/seq/subseq.hpp>

Sample Code

#include <boost/preprocessor/seq/subseq.hpp>

#define SEQ (0)(1)(2)(3)(4)(5)

BOOST_PP_SEQ_SUBSEQ(SEQ, 2, 3) // expands to (2)(3)(4)

© Copyright Housemarque Oy 2002
© Copyright Paul Mensonides 2002

Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at www.boost.org/LICENSE_1_0.txt)