Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext

Function template adl_move_swap_ranges_backward

boost::adl_move_swap_ranges_backward

Synopsis

// In header: <boost/move/adl_move_swap.hpp>


template<typename BidirIt1, typename BidirIt2> 
  BidirIt2 adl_move_swap_ranges_backward(BidirIt1 first1, BidirIt1 last1, 
                                         BidirIt2 last2);

Description

Exchanges elements between range [first1, last1) and another range ending at last2 using boost::adl_move_iter_swap. Elements are swapped from the end to the start.

Parameters: first1, last1 - the first range of elements to swap last2 - end of the second range of elements to swap

Type requirements:

  • BidirIt1, BidirIt2 must meet the requirements of BidirectionalIterator.

  • The types of dereferenced BidirIt1 and BidirIt2 must meet the requirements of Swappable

Return value: Iterator to the first element exchanged in the range ending at last2.


PrevUpHomeNext