Main Page | Modules | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members

Swap Algorithms
[Mutating Algorithms]


Functions

template<typename ForwardIterator1, typename ForwardIterator2>
ForwardIterator2 ustl::swap_ranges (ForwardIterator1 first, ForwardIterator2 last, ForwardIterator2 result)
template<typename Assignable>
void ustl::swap (Assignable &a, Assignable &b)
template<typename Iterator>
void ustl::iterator_swap (Iterator a, Iterator b)

Detailed Description

Algorithms for swapping elements.

Function Documentation

template<typename Iterator>
void iterator_swap Iterator  a,
Iterator  b
[inline]
 

Equivalent to swap (*a, *b)

template<typename Assignable>
void swap Assignable &  a,
Assignable &  b
[inline]
 

Assigns the contents of a to b and the contents of b to a. This is used as a primitive operation by many other algorithms.

template<typename ForwardIterator1, typename ForwardIterator2>
ForwardIterator2 swap_ranges ForwardIterator1  first,
ForwardIterator2  last,
ForwardIterator2  result
[inline]
 

Swaps corresponding elements of [first, last) and [result,)


Generated on Mon Jan 17 14:35:02 2005 for uSTL by 1.3.9 Doxygen Hosted on SourceForge.net