Back to Arangodb

BOOST_PP_CAT

3rdParty/boost/1.78.0/libs/preprocessor/doc/ref/cat.html

3.12.9.11.1 KB
Original Source

The BOOST_PP_CAT macro concatenates its arguments after they have been expanded.

Usage

BOOST_PP_CAT (a, b)

Arguments

a The left operand of the concatenation. b The right operand of the concatenation.

Remarks

The preprocessor token-pasting operator ( ## ) prevents arguments from expanding. This macro allows its arguments to expand before concatenation.

Concatenation must not result in an invocation of a macro that uses BOOST_PP_CAT. If that happens, BOOST_PP_CAT will not expand the second time.

Requirements

Header: <boost/preprocessor/cat.hpp>

Sample Code

#include <[boost/preprocessor/cat.hpp](../headers/cat.html)>[BOOST\_PP\_CAT](cat.html)(x,[BOOST\_PP\_CAT](cat.html)(y, z)) // expands to xyz

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)