Skip to Main Content United States    
PRODUCTS SUPPORT SOLUTIONS SERVICES
COMPAQ SOFTWARE
swap (3C++std) - Tru64 UNIX
Standard C++ Library
Copyright 1996, Rogue Wave Software, Inc.

NAME

  swap  - Exchange 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

STANDARDS CONFORMANCE

  ANSI X3J16/ISO WG21 Joint C++ Committee



        
Buy Online or Call 1.800.888.0220      privacy statement and legal notices 
STORES CONTACT US SEARCH PRODUCTS SOLUTIONS OPTIONS DEVELOPERS