Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

This is the documentation for an old version of boost. Click here for the latest Boost documentation.
PrevUpHomeNext

Function template rotate

boost::compute::rotate

Synopsis

// In header: <boost/compute/algorithm/rotate.hpp>


template<typename InputIterator> 
  void rotate(InputIterator first, InputIterator n_first, InputIterator last, 
              command_queue & queue = system::default_queue());

Description

Performs left rotation such that element at n_first comes to the beginning.

Space complexity: \Omega(distance(first, last))

See Also:

rotate_copy()


PrevUpHomeNext