Back to Arangodb

BOOST_PP_STRINGIZE

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

3.12.9.11.0 KB
Original Source

The BOOST_PP_STRINGIZE macro stringizes its argument after it has been expanded.

Usage

BOOST_PP_STRINGIZE (text)

Arguments

text The text to be converted to a string literal.

Remarks

The preprocessor stringizing operator ( # ) prevents arguments from expanding. This macro allows its argument to expand before it is stringized.

Requirements

Header: <boost/preprocessor/stringize.hpp>

Sample Code

#include <[boost/preprocessor/cat.hpp](../headers/cat.html)>
#include <[boost/preprocessor/stringize.hpp](../headers/stringize.html)>[BOOST\_PP\_STRINGIZE](stringize.html)([BOOST\_PP\_CAT](cat.html)(a, b)) // expands to "ab"

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)