Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext

Macro BOOST_VMD_IS_BEGIN_TUPLE

BOOST_VMD_IS_BEGIN_TUPLE — Tests whether a parameter begins with a tuple.

Synopsis

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

BOOST_VMD_IS_BEGIN_TUPLE(...)

Description

The macro checks to see if the parameter begins with a tuple.

.... = variadic param(s)

returns = 1 if the param begins with a tuple, 0 if it does not.

The macro works through variadic macro support.

The code is taken from a posting by Paul Mensonides.

This macro is not a test for only a tuple since the parameter may have other tokens following the tuple and it will still return 1.


PrevUpHomeNext