SyTen
syten::ConvertingIterator< It, T, Pointer, Reference > Struct Template Reference

The ConvertingIterator is an iterator wrapper that converts its pointee to the desired type. More...

#include <converting_iterator.h>

+ Inheritance diagram for syten::ConvertingIterator< It, T, Pointer, Reference >:
+ Collaboration diagram for syten::ConvertingIterator< It, T, Pointer, Reference >:

Public Types

using converting_to = T
 The converted-to value type. More...
 
using pointer = Pointer
 The converted-to pointer type. More...
 
using reference = Reference
 The converted-to reference type. More...
 

Public Member Functions

 ConvertingIterator ()=default
 Default ctor. More...
 
 ConvertingIterator (It wrapped)
 Standard ctor, takes the iterator it should wrap. More...
 
Reference operator* () const
 Converts to the request reference type. More...
 
Pointer operator-> () const
 Converts to the requested pointer type. More...
 

Detailed Description

template<typename It, typename T = typename It::value_type, typename Pointer = T*, typename Reference = T&>
struct syten::ConvertingIterator< It, T, Pointer, Reference >

The ConvertingIterator is an iterator wrapper that converts its pointee to the desired type.

Note
a partial specialization for pointers is pending
Template Parameters
ItIterator from which to inherit
Tvalue type to convert to
Pointerpointer type to convert to
Referencereference type to convert to

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