Quick Links:

bal | bbl | bdl | bsl

Static Public Member Functions

bdlb::TransformIteratorUtil Struct Reference

#include <bdlb_transformiterator.h>

List of all members.

Static Public Member Functions

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

Detailed Description

This struct provides a namespace for a function template that simplifies the creation of TransformIterator objects by allowing type deduction to discover the types of the functor and underlying iterator.

See Component bdlb_transformiterator


Member Function Documentation

template<class FUNCTOR , class ITERATOR >
static TransformIterator<FUNCTOR, ITERATOR> bdlb::TransformIteratorUtil::make ( const ITERATOR &  iterator,
const FUNCTOR &  functor,
bslma::Allocator basicAllocator = 0 
) [static]

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.


The documentation for this struct was generated from the following file: