#include <forwardlist.hpp>
Implementation of std::iterator for types ForwardNode and ForwardList.
As the name of the class indicates, this iterator satisfies the C++ standard library concept ForwardIterator .
| TElement | The "final" element type that by contract is derived from struct ForwardNode. |
Definition at line 23 of file forwardlist.hpp.
Public Methods | |
| ForwardListIterator (TElement *start) noexcept | |
| bool | operator!= (ForwardListIterator other) const |
| TElement & | operator* () const |
| ForwardListIterator & | operator++ () |
| ForwardListIterator | operator++ (int) |
| TElement * | operator-> () const |
| bool | operator== (ForwardListIterator other) const |
Private Fields | |
| TElement * | element |
|
inlinenoexcept |
Constructor.
| start | Pointer to the initial element. |
Definition at line 338 of file forwardlist.hpp.
|
inline |
Comparison operator.
| other | The iterator to compare ourselves to. |
true if this and given iterator are not equal, false otherwise. Definition at line 371 of file forwardlist.hpp.
|
inline |
Retrieves a reference to the referred element.
Definition at line 380 of file forwardlist.hpp.
|
inline |
Prefix increment operator.
Definition at line 346 of file forwardlist.hpp.
|
inline |
Postfix increment operator.
Definition at line 354 of file forwardlist.hpp.
|
inline |
Retrieves a pointer to the referred element.
Definition at line 387 of file forwardlist.hpp.
|
inline |
Comparison operator.
| other | The iterator to compare ourselves to. |
true if this and the given iterator are pointing to the same element, false otherwise. Definition at line 363 of file forwardlist.hpp.
|
private |
The current element this iterator refers to.
Definition at line 332 of file forwardlist.hpp.