BloombergLP::bdlb::TransformIterator::TransformIterator

Create a transform iterator from the specified iterator and functor.

Synopsis

Declared in <bdlb_transformiterator.h>

TransformIterator(
    ITERATOR const& iterator,
    FUNCTOR functor,
    bslma::Allocator* basicAllocator = 0);

Description

Create a TransformIterator object using the specified iterator and functor. Optionally specify a basicAllocator used to supply memory. If basicAllocator is 0, the currently installed default allocator is used.

Parameters

NameDescription
iteratorunderlying iterator to hold
functortransforming functor to apply on dereference
basicAllocatorallocator used to supply memory