swap [C++ Reference]
Keywords: stl,set,swap
Date: 2009-10-09T04:53:20-0700

[[swap]]
C++ Reference
Translations of this page?:

- en
- br-pt
- cn
- cz
- de
- es
- fr
- it
- jp
- nl
- pl
- ro
- ru
- sk
- tr
- tw

## swap

Syntax:

        #include <set>
        void swap( set& from );

The swap() function exchanges the elements of the current set with those of from. This function operates in constant time.

Edit this page • Old revisions
• • • Login • Index • Recent changes • RSS • cc •