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 to view this page for the latest version.
PrevUpHomeNext

Function template swap_ranges

boost::compute::swap_ranges

Synopsis

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


template<typename Iterator1, typename Iterator2> 
  Iterator2 swap_ranges(Iterator1 first1, Iterator1 last1, Iterator2 first2, 
                        command_queue & queue = system::default_queue());

Description

Swaps the elements in the range [first1, last1) with the elements in the range beginning at first2.

Space complexity: \Omega(distance(first1, last1))


PrevUpHomeNext