Boost C++ Libraries of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

This is the documentation for an old version of Boost. Click here to view this page for the latest version.


BOOST_VMD_TUPLE_REMOVE_D — removes an element from a tuple. It reenters BOOST_PP_WHILE with maximum efficiency.


// In header: <boost/vmd/tuple/remove.hpp>

BOOST_VMD_TUPLE_REMOVE_D(d, tuple, index)


d = The next available BOOST_PP_WHILE iteration.
tuple = tuple from which an element is to be removed.
index = The zero-based position in tuple of the element to be removed.

If index is greater or equal to the tuple size the result is undefined. If the tuple is a single element and the index is 0 the result is an empty tuple. Otherwise the result is a tuple after removing the index element.