Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext

Macro BOOST_VMD_IS_NUMBER

BOOST_VMD_IS_NUMBER — Tests whether a parameter is a Boost PP number.

Synopsis

// In header: <boost/vmd/is_number.hpp>

BOOST_VMD_IS_NUMBER(ppident)

Description

The macro checks to see if a parameter is a Boost PP number. A Boost PP number is a value from 0 to 256.

ppident = a preprocessor identifier

returns = 1 if the param is a Boost PP number, 0 if it is not.

The macro works through variadic macro support. The ppident can be either:

1) A preprocessor identifier, alphanumeric or underscore characters. 2) An empty value, returns 0. 3) A set of beginning parens, returns 0.

If it is not one of these possibilities a compiler error will occur.


PrevUpHomeNext