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 |
|
This component‐private class defines various types that are used in the implementation of the transform iterator. |
Type Aliases
Name |
Description |
Define the iterator traits class of the underlying iterator. |
|
Result type of applying the functor to a dereferenced iterator. |
|
Type used to represent distances between iterators. |
|
Iterator category of this transform iterator. |
|
Pointer type derived from the functor result type. |
|
Reference type returned by dereferencing this iterator. |
|
Value type produced by applying the functor to a dereferenced underlying iterator. |
Created with MrDocs