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

Fills a range with values passed in the function. More...

#include <bolt/amp/bolt.h>
#include <bolt/amp/device_vector.h>
#include <string>
#include <iostream>
#include <bolt/amp/detail/fill.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 ForwardIterator , typename T >
void bolt::amp::fill (const bolt::amp::control &ctl, ForwardIterator first, ForwardIterator last, const T &value)
 Fill assigns the value of value to each element in the range [first,last].
 
template<typename ForwardIterator , typename T >
void bolt::amp::fill (ForwardIterator first, ForwardIterator last, const T &value)
 
template<typename OutputIterator , typename Size , typename T >
OutputIterator bolt::amp::fill_n (const bolt::amp::control &ctl, OutputIterator first, Size n, const T &value)
 fill_n assigns the value value to every element in the range [first,first+n]. The return value is first + n.
 
template<typename OutputIterator , typename Size , typename T >
OutputIterator bolt::amp::fill_n (OutputIterator first, Size n, const T &value)
 

Detailed Description

Fills a range with values passed in the function.