template<typename T>
DllIterator class
list iterator
List iterator. Traverse the list from the first item. Usually it is safe to attach/detach list items during the iterator is active.
Constructors, destructors, conversion operators
- DllIterator(Dllink<T>* cur) explicit constexpr noexcept
- Construct a new dll iterator object.
Public functions
- auto operator++() noexcept -> DllIterator & -> auto constexpr
- move to the next item
- auto operator*() noexcept -> Dllink< T > & -> auto constexpr
- get the reference of the current item
Friends
- auto operator==(const DllIterator& lhs, const DllIterator& rhs) noexcept -> bool -> auto
- eq operator
- auto operator!=(const DllIterator& lhs, const DllIterator& rhs) noexcept -> bool -> auto
- neq operator
Function documentation
template<typename T>
DllIterator<T>:: DllIterator(Dllink<T>* cur) explicit constexpr noexcept
Construct a new dll iterator object.
| Parameters | |
|---|---|
| cur in | |
template<typename T>
auto DllIterator<T>:: operator++() noexcept -> DllIterator & constexpr
move to the next item
| Returns | Dllist& |
|---|
template<typename T>
auto operator==(const DllIterator& lhs,
const DllIterator& rhs) noexcept -> bool
eq operator
| Parameters | |
|---|---|
| lhs in | |
| rhs in | |
| Returns | true |
template<typename T>
auto operator!=(const DllIterator& lhs,
const DllIterator& rhs) noexcept -> bool
neq operator
| Parameters | |
|---|---|
| lhs in | |
| rhs in | |
| Returns | true |