Boost  v1.57.0
doxygen for www.boost.org
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
replace.hpp File Reference
Include dependency graph for replace.hpp:
This graph shows which files directly or indirectly include this file:

Macros

#define BOOST_PP_ARRAY_REPLACE(array, i, elem)   BOOST_PP_ARRAY_REPLACE_I(BOOST_PP_DEDUCE_D(), array, i, elem)
 
#define BOOST_PP_ARRAY_REPLACE_I(d, array, i, elem)   BOOST_PP_ARRAY_REPLACE_D(d, array, i, elem)
 
#define BOOST_PP_ARRAY_REPLACE_D(d, array, i, elem)   BOOST_PP_ARRAY_REPLACE_D_I(d, array, i, elem)
 
#define BOOST_PP_ARRAY_REPLACE_D_I(d, array, i, elem)   BOOST_PP_TUPLE_ELEM(5, 3, BOOST_PP_WHILE_ ## d(BOOST_PP_ARRAY_REPLACE_P, BOOST_PP_ARRAY_REPLACE_O, (0, i, elem, (0, ()), array)))
 
#define BOOST_PP_ARRAY_REPLACE_P(d, state)   BOOST_PP_NOT_EQUAL(BOOST_PP_TUPLE_ELEM(5, 0, state), BOOST_PP_ARRAY_SIZE(BOOST_PP_TUPLE_ELEM(5, 4, state)))
 
#define BOOST_PP_ARRAY_REPLACE_O(d, state)   BOOST_PP_ARRAY_REPLACE_O_I(BOOST_PP_TUPLE_ELEM(5, 0, state), BOOST_PP_TUPLE_ELEM(5, 1, state), BOOST_PP_TUPLE_ELEM(5, 2, state), BOOST_PP_TUPLE_ELEM(5, 3, state), BOOST_PP_TUPLE_ELEM(5, 4, state))
 
#define BOOST_PP_ARRAY_REPLACE_O_I(n, i, elem, res, arr)   (BOOST_PP_INC(n), i, elem, BOOST_PP_ARRAY_PUSH_BACK(res, BOOST_PP_IIF(BOOST_PP_NOT_EQUAL(n, i), BOOST_PP_ARRAY_ELEM(n, arr), elem)), arr)
 

Macro Definition Documentation

#define BOOST_PP_ARRAY_REPLACE (   array,
  i,
  elem 
)    BOOST_PP_ARRAY_REPLACE_I(BOOST_PP_DEDUCE_D(), array, i, elem)
#define BOOST_PP_ARRAY_REPLACE_D (   d,
  array,
  i,
  elem 
)    BOOST_PP_ARRAY_REPLACE_D_I(d, array, i, elem)
#define BOOST_PP_ARRAY_REPLACE_D_I (   d,
  array,
  i,
  elem 
)    BOOST_PP_TUPLE_ELEM(5, 3, BOOST_PP_WHILE_ ## d(BOOST_PP_ARRAY_REPLACE_P, BOOST_PP_ARRAY_REPLACE_O, (0, i, elem, (0, ()), array)))
#define BOOST_PP_ARRAY_REPLACE_I (   d,
  array,
  i,
  elem 
)    BOOST_PP_ARRAY_REPLACE_D(d, array, i, elem)
#define BOOST_PP_ARRAY_REPLACE_O (   d,
  state 
)    BOOST_PP_ARRAY_REPLACE_O_I(BOOST_PP_TUPLE_ELEM(5, 0, state), BOOST_PP_TUPLE_ELEM(5, 1, state), BOOST_PP_TUPLE_ELEM(5, 2, state), BOOST_PP_TUPLE_ELEM(5, 3, state), BOOST_PP_TUPLE_ELEM(5, 4, state))
#define BOOST_PP_ARRAY_REPLACE_O_I (   n,
  i,
  elem,
  res,
  arr 
)    (BOOST_PP_INC(n), i, elem, BOOST_PP_ARRAY_PUSH_BACK(res, BOOST_PP_IIF(BOOST_PP_NOT_EQUAL(n, i), BOOST_PP_ARRAY_ELEM(n, arr), elem)), arr)
#define BOOST_PP_ARRAY_REPLACE_P (   d,
  state 
)    BOOST_PP_NOT_EQUAL(BOOST_PP_TUPLE_ELEM(5, 0, state), BOOST_PP_ARRAY_SIZE(BOOST_PP_TUPLE_ELEM(5, 4, state)))