Base class template that optionally provides an allocator method.

Synopsis

Declared in <bdlb_transformiterator.h>

template<
    class BASE_TYPE,
    bool>
struct TransformIterator_AllocatorOfFunctorMethod;

Description

The TransformIterator_AllocatorOfFunctorMethod class template has an allocator method when its boolean template parameter is true, which will be made to be the case when the iterator of the transform iterator does not use allocators and the functor of the transform iterator uses allocators. The transform iterator type itself is supplied as BASE_TYPE.

Specializations

Name

Description

TransformIterator_AllocatorOfFunctorMethod<BASE_TYPE, true>

Base providing allocator when only the functor uses allocators.

Derived Classes

Name

Description

TransformIterator

Wrapping iterator that invokes a functor on dereference.

Created with MrDocs