The BOOST_PP_TUPLE_INSERT macro
+ inserts an element into an tuple.
+
Usage
+
BOOST_PP_TUPLE_INSERT(tuple, i, elem)
+
Arguments
+
+
tuple
+
The tuple into which an element is to be inserted.
+
i
+
The zero-based position in tuple where an element is to be
+ inserted. Valid values range from 0 to BOOST_PP_TUPLE_SIZE(tuple).
+
elem
+
The element to insert.
+
+
Remarks
+
This macro inserts elem before the element at index i.
+
+
If the operation attempts to create an tuple that is larger
+ than BOOST_PP_LIMIT_TUPLE, the result is undefined.
+
This macro uses BOOST_PP_WHILE interally. Therefore, to
+ use the d parameter passed from other macros that use BOOST_PP_WHILE,
+ see BOOST_PP_TUPLE_INSERT_D.
The BOOST_PP_TUPLE_POP_BACK macro
+ pops an element from the end of an tuple.
+
Usage
+
BOOST_PP_TUPLE_POP_BACK(tuple)
+
Arguments
+
+
tuple
+
The tuple to pop an element from.
+
+
Remarks
+
This macro returns tuple
+ after removing the last element. If tuple has only a single
+ element, it remains unchanged since a tuple must have at
+ least one element.
+
This macro uses BOOST_PP_REPEAT internally. Therefore,
+ to use the z parameter passed from other macros that use BOOST_PP_REPEAT,
+ see BOOST_PP_TUPLE_POP_BACK_Z
The BOOST_PP_TUPLE_POP_BACK_Z macro
+ pops an element from the end of an tuple. It reenters BOOST_PP_REPEAT
+ with maximum efficiency.
+
Usage
+
BOOST_PP_TUPLE_POP_BACK_Z(z, tuple)
+
Arguments
+
+
z
+
The next available BOOST_PP_REPEAT dimension.
+
tuple
+
The tuple to pop an element from.
+
+
Remarks
+
This macro returns tuple after removing the last
+ element.
+ If tuple has only a single element, it remains unchanged since
+ a tuple must have at least one element.
The BOOST_PP_TUPLE_POP_FRONT macro
+ pops an element from the beginning of a tuple.
+
Usage
+
BOOST_PP_TUPLE_POP_FRONT(tuple)
+
Arguments
+
+
tuple
+
The tuple to pop an element from.
+
+
Remarks
+
This macro returns tuple after removing the first
+ element.
+ If tuple has only a single element, it remains unchanged since
+ a tuple must have at least one element.
+
This macro uses BOOST_PP_REPEAT internally. Therefore,
+ to use the z parameter passed from other macros that use BOOST_PP_REPEAT,
+ see BOOST_PP_TUPLE_POP_FRONT_Z
The BOOST_PP_TUPLE_POP_FRONT_Z
+ macro pops an element from the beginning of a tuple. It
+ reenters BOOST_PP_REPEAT with maximum efficiency.
+
Usage
+
BOOST_PP_TUPLE_POP_FRONT_Z(z, tuple)
+
Arguments
+
+
z
+
The next available BOOST_PP_REPEAT dimension.
+
tuple
+
The tuple to pop an element from.
+
+
Remarks
+
This macro returns tuple after removing the first
+ element. If tuple has only a single element, it remains
+ unchanged since a tuple must have at least one element.
The BOOST_PP_TUPLE_REMOVE macro
+ removes an element from a tuple.
+
Usage
+
BOOST_PP_TUPLE_REMOVE(tuple, i)
+
Arguments
+
+
tuple
+
The tuple from which an element is to be removed.
+
i
+
The zero-based position in tuple of the element to be
+ removed. Valid values range from 0 to BOOST_PP_TUPLE_SIZE(tuple)
+ - 1. If tuple has only a single element, it remains
+ unchanged since a tuple must have at least one element.
+
+
Remarks
+
This macro uses BOOST_PP_WHILE interally. Therefore, to
+ use the d parameter passed from other macros that use BOOST_PP_WHILE,
+ see BOOST_PP_TUPLE_REMOVE_D.
The BOOST_PP_TUPLE_REMOVE_D macro
+ removes an element from a tuple. It reenters BOOST_PP_WHILE
+ with maximum efficiency.
+
Usage
+
BOOST_PP_TUPLE_REMOVE_D(d, tuple,
+ i)
+
Arguments
+
+
d
+
The next available BOOST_PP_WHILE iteration.
+
tuple
+
The tuple from which an element is to be removed.
+
i
+
The zero-based position in tuple of the element to be
+ removed. Valid values range from 0 to BOOST_PP_TUPLE_SIZE(tuple)
+ - 1. If tuple has only a single element, it remains
+ unchanged since a tuple must have at least one element.
The BOOST_PP_TUPLE_REPLACE macro
+ replaces an element in a tuple.
+
Usage
+
BOOST_PP_TUPLE_REPLACE(tuple, i, elem)
+
Arguments
+
+
tuple
+
A tuple to replace an element in.
+
i
+
The zero-based position in tuple of the element to be
+ replaced. Valid values range from 0 to BOOST_PP_TUPLE_SIZE(tuple)
+ - 1.
+
elem
+
The replacement element.
+
+
Remarks
+
This macro uses BOOST_PP_WHILE interally. Therefore, to
+ use the d parameter passed from other macros that use BOOST_PP_WHILE,
+ see BOOST_PP_TUPLE_REPLACE_D.