.\" ident @(#)swap.3 .\" Standard Template Library .\" $$RW_INSERT_HEADER "slyrs.man" .TH swap 3C++ "02 Apr 1998" "Rogue Wave Software" "-" .ce2 Standard C++ Library Copyright 1998, Rogue Wave Software, Inc. .SH NAME \f2swap\fP \ - Exchanges values. .SH SYNOPSIS .RE .RS 0 #include .br template .br void swap (T& a, T& b); .SH DESCRIPTION The swap algorithm exchanges the values of \f2a\fP and \f2b\fP. The effect is: .br T tmp = a .br a = b .br b = tmp .SH SEE ALSO iter_swap, swap_ranges