...one of the most highly
regarded and expertly designed C++ library projects in the
world. — Herb Sutter and Andrei
BOOST_VMD_IS_ARRAY — Determines if a sequence is a Boost PP array.
// In header: <boost/vmd/is_array.hpp> BOOST_VMD_IS_ARRAY(sequence)
The macro checks that the sequence is a Boost PP array. It returns 1 if it is an array, else if returns 0.
sequence = a possible Boost PP array.
returns = 1 if it is an array, else returns 0.
The macro will generate a preprocessing error if the input is in the form of an array but its first tuple element, instead of being a number, is a preprocessor token which VMD cannot parse, as in the example '(&2,(0,1))' which is a valid tuple but an invalid array.