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/cl/device_vector.h"
#include <bolt/cl/detail/fill.inl>

Go to the source code of this file.

Namespaces

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

Functions

template<typename ForwardIterator , typename T >
void bolt::cl::fill (const bolt::cl::control &ctl, ForwardIterator first, ForwardIterator last, const T &value, const std::string &cl_code="")
 Fill assigns the value of value to each element in the range [first,last].
 
template<typename ForwardIterator , typename T >
void bolt::cl::fill (ForwardIterator first, ForwardIterator last, const T &value, const std::string &cl_code="")
 
template<typename OutputIterator , typename Size , typename T >
OutputIterator bolt::cl::fill_n (const bolt::cl::control &ctl, OutputIterator first, Size n, const T &value, const std::string &cl_code="")
 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::cl::fill_n (OutputIterator first, Size n, const T &value, const std::string &cl_code="")
 

Detailed Description

Fills a range with values passed in the function.