January 25, 2005

The reverse() Algorithm

You can use this algorithm to reverse the order of elements in any sequence container. It takes two bidirectional iterators as argument: int iArr [] = {1, 2, 3, 4,