The implementation is in algobase.h . Requirements on types ForwardIterator1 and ForwardIterator2 are models of Forward Iterator . ForwardIterator1 and ForwardIterator2 are mutable. ForwardIterator1 and ForwardIterator2 have the same value type. Preconditions ForwardIterator1 and ForwardIterator2 are dereferenceable.
Complexity See swap for a discussion.
EarthWeb is a service of INT Media Group, Incorporated. Copyright 2001 INT Media Group, Incorporated. All Rights Reserved.