1 #include "NextAndExchange.h"
8 namespace NextAndExchange
13 void NextAndExchange::tests()
16 vector
<int> v
{ 42, 420, 2, 3, 4, 5, 6, 7 };
17 cout
<< "Is the list sorted? " << is_sorted(next(v
.begin()), v
.end()) << endl
;
21 auto b
= exchange(a
, 2);
22 cout
<< "a = " << a
<< ", b = " << b
<< endl
;