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

swap()

Library:  Algorithms


Function

Local Index

No Entries

Summary

Algorithm that exchanges values

Synopsis

#include <algorithm>

namespace std {
  template <class T>
  void swap(T& a, T& b)
}

Description

The swap() algorithm exchanges the values of a and b. The effect is:

Example

See Also

iter_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