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::assign_if< Predicate, T > Struct Template Reference

Work function for replace_if(), which assigns the stored value to the argument if the predicate returns true. More...

Public Member Functions

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

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::assign_if< Predicate, T >

Work function for replace_if(), which assigns the stored value to the argument if the predicate returns true.

Template Parameters
PredicateUnary functor which is called on the argument.

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