BloombergLP::bdlb::swap

Efficiently exchange the values of the specified a and b objects by applying swap to each of the functor and underlying iterator fields of the two objects.

Synopsis

Declared in <bdlb_transformiterator.h>

template<
    class FUNCTOR,
    class ITERATOR>
void
swap(
    TransformIterator<FUNCTOR, ITERATOR>& a,
    TransformIterator<FUNCTOR, ITERATOR>& b);

Parameters

NameDescription
afirst transform iterator to exchange
bsecond transform iterator to exchange