|
ocpp 0.24.1
A C++ implementation of the Open Charge Point Protocol
|
Helper struct that allows the use of an iterator in an interface, can be implemented using any forward iterator. More...
#include <custom_iterators.hpp>
Public Types | |
| using | iterator_category = std::forward_iterator_tag |
| using | difference_type = std::ptrdiff_t |
| using | value_type = T |
| using | pointer = value_type * |
| using | reference = value_type & |
| using | base = ForwardIteratorBase< T > |
Public Member Functions | |
| ForwardIterator (std::unique_ptr< base > it) | |
| Construct a new wrapper using any type that implements the abstract struct Base. | |
| reference | operator* () const |
| Get a reference to the value pointed to by the iterator. | |
| ForwardIterator & | operator++ () |
| Increment the iterator once to the next position. | |
Friends | |
| bool | operator!= (const ForwardIterator &a, const ForwardIterator &b) |
Check for inequality between this a and b. | |
Helper struct that allows the use of an iterator in an interface, can be implemented using any forward iterator.