The BOOST_PP_ARRAY_REPLACE_D
macro replaces an element in an array
. It reenters BOOST_PP_WHILE
with maximum efficiency.
Usage
BOOST_PP_ARRAY_REPLACE_D(d, array, i, elem)
Arguments
-
d
: The next availableBOOST_PP_WHILE
iteration. -
array
: Anarray
to replace an element in. -
i
: The zero-based position inarray
of the element to be replaced. Valid values range from0
toBOOST_PP_ARRAY_SIZE(array) - 1
. -
elem
: The replacement element.
See Also
Requirements
Header: <boost/preprocessor/array/replace.hpp>