| Home | Libraries | People | FAQ | More

## Function template make_buffer_iterator

boost::compute::make_buffer_iterator

## Synopsis

    // In header: <boost/compute/iterator/buffer_iterator.hpp>

    template<typename T>
      buffer_iterator< T >
      make_buffer_iterator(const buffer & buffer, size_t index = 0);

## Description

Creates a new buffer_iterator for `buffer` at `index`.

Parameters: |
`buffer` | the buffer object
`index` | the index in the buffer
Returns: | a `buffer_iterator` for `buffer` at `index`