...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
Returns the result type of replace_if
, given the types
of the sequence, Polymorphic
Function Object predicate and replacement object.
template< typename Sequence, typename F, typename T> struct replace_if { typedef unspecified type; };
Table 1.88. Parameters
Parameter |
Requirement |
Description |
---|---|---|
|
A model of Forward Sequence |
Operation's argument |
|
A model of unary Polymorphic Function Object |
Replacement predicate |
|
Any type |
The type of the replacement object |
result_of::replace_if
<Sequence,F,T>::type
Return type: A model of Forward Sequence.
Semantics: Returns the return type of
replace_if
.
Constant.
#include <boost/fusion/algorithm/transformation/replace_if.hpp> #include <boost/fusion/include/replace_if.hpp>