Bolt  1.3
C++ template library with support for OpenCL
Namespaces | Macros | Functions
replace.h File Reference

Replaces every element which satisfies specified condition (if any) in the given input range with specified new value. More...

#include <amp.h>
#include "bolt/amp/functional.h"
#include "bolt/amp/bolt.h"
#include <string>
#include <assert.h>
#include <bolt/amp/detail/replace.inl>

Go to the source code of this file.

Namespaces

namespace  bolt
 Defining namespace for the Bolt project.
 
namespace  bolt::amp
 Namespace containing AMP related data types and functions.
 

Functions

template<typename InputIterator , typename T >
void bolt::amp::replace (InputIterator first, InputIterator last, const T &old_value, const T &new_value)
 
template<typename InputIterator , typename T >
void bolt::amp::replace (control &ctl, InputIterator first, InputIterator last, const T &old_value, const T &new_value)
 
template<typename InputIterator , typename Predicate , typename T >
void bolt::amp::replace_if (control &ctl, InputIterator first, InputIterator last, Predicate pred, const T &new_value)
 
template<typename InputIterator , typename Predicate , typename T >
void bolt::amp::replace_if (InputIterator first, InputIterator last, Predicate pred, const T &new_value)
 
template<typename InputIterator1 , typename InputIterator2 , typename Predicate , typename T >
void bolt::amp::replace_if (InputIterator1 first, InputIterator1 last, InputIterator2 stencil, Predicate pred, const T &new_value)
 
template<typename InputIterator1 , typename InputIterator2 , typename Predicate , typename T >
void bolt::amp::replace_if (control &ctl, InputIterator1 first, InputIterator1 last, InputIterator2 stencil, Predicate pred, const T &new_value)
 
template<typename InputIterator , typename OutputIterator , typename Predicate , typename T >
OutputIterator bolt::amp::replace_copy_if (control &ctl, InputIterator first, InputIterator last, OutputIterator result, Predicate pred, const T &new_value)
 
template<typename InputIterator , typename OutputIterator , typename Predicate , typename T >
OutputIterator bolt::amp::replace_copy_if (InputIterator first, InputIterator last, OutputIterator result, Predicate pred, const T &new_value)
 
template<typename InputIterator1 , typename InputIterator2 , typename OutputIterator , typename Predicate , typename T >
OutputIterator bolt::amp::replace_copy_if (control &ctl, InputIterator1 first, InputIterator1 last, InputIterator2 stencil, OutputIterator result, Predicate pred, const T &new_value)
 
template<typename InputIterator1 , typename InputIterator2 , typename OutputIterator , typename Predicate , typename T >
OutputIterator bolt::amp::replace_copy_if (InputIterator1 first, InputIterator1 last, InputIterator2 stencil, OutputIterator result, Predicate pred, const T &new_value)
 
template<typename InputIterator , typename OutputIterator , typename T >
OutputIterator bolt::amp::replace_copy (control &ctl, InputIterator first, InputIterator last, OutputIterator result, const T &old_value, const T &new_value)
 
template<typename InputIterator , typename OutputIterator , typename T >
OutputIterator bolt::amp::replace_copy (InputIterator first, InputIterator last, OutputIterator result, const T &old_value, const T &new_value)
 

Detailed Description

Replaces every element which satisfies specified condition (if any) in the given input range with specified new value.