Standard C++ Library Class Reference
Click on the banner to return to the Class Reference home page.
©Copyright 1996 Rogue Wave Software
iter_swap
Algorithm
Summary
Exchange values pointed at in two locations
Contents
Synopsis●
Description●
Example●
Warning●
See Also●
Synopsis
#include <algorithm>
template <class ForwardIterator1, class ForwardIterator2>
void iter_swap (ForwardIterator1, ForwardIterator2);
Description
The iter_swap algorithm exchanges the values pointed at by the two iterators a and b.
Example
#include <vector>
#include <algorithm>
#include <iostream.h>
int main ()
{