Traits for a transform iterator whose functor is a function pointer.

Synopsis

Declared in <bdlb_transformiterator.h>

template<
    class RESULT,
    class ARGUMENT,
    class ITERATOR>
struct TransformIterator_Traits<RESULT(*)(ARGUMENT), ITERATOR>
    : TransformIterator_Traits<bsl::function<RESULT(ARGUMENT)>, ITERATOR>

Description

Specialize the transform iterator traits template for functors that are function or function pointer types. It is sufficient to inherit from the version of the traits class that corresponds to a bsl::function of the function type parameter.

Base Classes

Name

Description

TransformIterator_Traits<bsl::function<RESULT(ARGUMENT)>, ITERATOR>

This component‐private class defines various types that are used in the implementation of the transform iterator.

Type Aliases

Name

Description

BaseIteratorTraits

Define the iterator traits class of the underlying iterator.

ResultType

Result type of applying the functor to a dereferenced iterator.

difference_type

Type used to represent distances between iterators.

iterator_category

Iterator category of this transform iterator.

pointer

Pointer type derived from the functor result type.

reference

Reference type returned by dereferencing this iterator.

value_type

Value type produced by applying the functor to a dereferenced underlying iterator.

Created with MrDocs