Work function for replace_if(), which assigns the stored value to the argument if the predicate returns true.
More...
|
| assign_if (Predicate const &pred, T const &new_value) |
|
template<typename Reference1 > |
void | operator() (Reference1 x) |
|
|
Predicate | m_pred |
|
T | m_new_value |
|
template<typename Predicate, typename T>
struct stapl::algo_details::assign_if< Predicate, T >
Work function for replace_if(), which assigns the stored value to the argument if the predicate returns true.
- Template Parameters
-
Predicate | Unary functor which is called on the argument. |
The documentation for this struct was generated from the following file: