STAPL API Reference          
Overview   Containers   Algorithms   Views   Skeletons   Run-Time System
Modules     Classes    
List of all members | Public Member Functions | Public Types | Public Attributes
stapl::algo_details::copy_with_replacement< Predicate, T > Struct Template Reference

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...

Public Member Functions

 copy_with_replacement (Predicate const &pred, T const &new_value)
 
template<typename Reference1 , typename Reference2 >
void operator() (Reference1 x, Reference2 y)
 

Public Types

typedef void result_type
 

Public Attributes

Predicate m_pred
 
m_new_value
 

Detailed Description

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
PredicateUnary functor to test for the need for replacement.
TType of the value to replace.

The documentation for this struct was generated from the following file: