Previous fileTop of DocumentContentsIndex pageNext file
Apache C++ Standard Library Reference Guide

iter_swap()

Library:  Algorithms


Function

Local Index

No Entries

Summary

Algorithm that exchanges values in two locations

Synopsis

#include <algorithm>

namespace std {
  template <class ForwardIterator1, class ForwardIterator2>
  void iter_swap(ForwardIterator1, ForwardIterator2);
}

Description

The iter_swap() algorithm exchanges the values pointed to by the two iterators a and b.

Example

See Also

Iterators, swap(), swap_ranges()

Standards Conformance

ISO/IEC 14882:1998 -- International Standard for Information Systems -- Programming Language C++, Section 25.2.2



Previous fileTop of DocumentContentsIndex pageNext file