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.