ocpp 0.24.1
A C++ implementation of the Open Charge Point Protocol
Public Types | Public Member Functions | Friends | List of all members
ocpp::ForwardIterator< T > Struct Template Reference

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.
 
ForwardIteratoroperator++ ()
 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.
 

Detailed Description

template<typename T>
struct ocpp::ForwardIterator< T >

Helper struct that allows the use of an iterator in an interface, can be implemented using any forward iterator.


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