The BOOST_PP_SEQ_PUSH_FRONT macro pushes an element onto the beginning of a seq.

Usage

BOOST_PP_SEQ_PUSH_FRONT(seq, elem)

Arguments

seq
The seq onto which elem is pushed.
elem
The element to push onto the beginning of seq.

Remarks

This macro returns seq after prepending elem
This macro is an explicit form of directly prepending an element.  In other words, BOOST_PP_SEQ_PUSH_FRONT(seq, x) is equivalent to (x)seq.

See Also

Requirements

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

Sample Code

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

#define SEQ (b)(c)

BOOST_PP_SEQ_PUSH_FRONT(SEQ, a) // expands to (a)(b)(c)

© 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)