Home » C++ algorithm iter_swap() function

C++ algorithm iter_swap() function

by Online Tutorials Library

C++ Algorithm iter_swap()

C++ Algorithm iter_swap() exchanges the elements pointed to by two iterators a and b.

Syntax

Parameter

a: One of the forward iterator whose value is to be exchanged.

b: Second of the forward iterator whose value is to be exchanged.

Return value

None

You may also like