Copies the first argument to the second unless the first meets the predicate provided, in which case the given value is copied to the second argument.
More...
|
| copy_with_replacement (Predicate const &pred, T const &new_value) |
|
template<typename Reference1 , typename Reference2 > |
void | operator() (Reference1 x, Reference2 y) |
|
|
Predicate | m_pred |
|
T | m_new_value |
|
template<typename Predicate, typename T>
struct stapl::algo_details::copy_with_replacement< Predicate, T >
Copies the first argument to the second unless the first meets the predicate provided, in which case the given value is copied to the second argument.
- Template Parameters
-
Predicate | Unary functor to test for the need for replacement. |
T | Type of the value to replace. |
The documentation for this struct was generated from the following file: