Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ swap(3C++) — Sun WorkShop 5.0

Media Vault

Software Library

Restoration Projects

Artifacts Sought

swap(3C++)

Standard C++ Library
Copyright 1998, Rogue Wave Software, Inc.

 

NAME

 
swap
 
 - Exchanges values.
 
 
 

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:
 
 
T tmp = a
a = b
b = tmp
 
 
 

SEE ALSO

 
 
iter_swap, swap_ranges
 

Rogue Wave Software  —  Last change: 02 Apr 1998

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026