Return a transform iterator constructed from iterator and functor.

Synopsis

Declared in <bdlb_transformiterator.h>

template<
    class FUNCTOR,
    class ITERATOR>
static
TransformIterator<FUNCTOR, ITERATOR>
make(
    ITERATOR const& iterator,
    FUNCTOR const& functor,
    bslma::Allocator* basicAllocator = 0);

Description

Return a TransformIterator object constructed with the specified iterator and functor. Optionally specify a basicAllocator used to supply memory. If basicAllocator is 0, the currently installed default allocator is used. Note that if the compiler does not implement the return‐value optimization, this function may return a copy created with the default allocator even if a different allocator is supplied.

Return Value

a TransformIterator constructed from iterator and functor

Parameters

Name

Description

iterator

underlying iterator to hold

functor

transforming functor to apply on dereference

basicAllocator

allocator used to supply memory

Created with MrDocs