Rogue Wave banner
Previous fileTop of documentContentsIndexNext file

swap


Algorithm

Summary

Exchanges values.

Data Type and Member Function Indexes
(exclusive of constructors and destructors)

None

Synopsis

#include <algorithm>
template <class T>
void swap (T& a, T& b);

Description

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

See Also

iter_swap, swap_ranges



Previous fileTop of documentContentsIndexNext file
©Copyright 1998, Rogue Wave Software, Inc.
Send mail to report errors or comment on the documentation.
OEM Release, June 1998