hpx/preprocessor/strip_parens.hpp#

Defined in header hpx/preprocessor/strip_parens.hpp.

See Public API for a list of names and headers that are part of the public HPX API.

Defines

HPX_PP_STRIP_PARENS(X)#

For any symbol X, this macro returns the same symbol from which potential outer parens have been removed. If no outer parens are found, this macros evaluates to X itself without error.

The original implementation of this macro is from Steven Watanbe as shown in http://boost.2283326.n4.nabble.com/preprocessor-removing-parentheses-td2591973.html#a2591976

HPX_PP_STRIP_PARENS(no_parens)
HPX_PP_STRIP_PARENS((with_parens))
Example Usage:

This produces the following output

no_parens
with_parens

Parameters
  • X – Symbol to strip parens from