Template Class dll_iterator

Template Parameter Order

  1. typename T

Class Documentation

template<typename T>
class dll_iterator

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.

Public Functions

inline explicit constexpr dll_iterator(dllink<T> *cur) noexcept

Construct a new dll iterator object.

Parameters

cur[in]

inline constexpr auto operator++() noexcept -> dll_iterator&

move to the next item

Returns

dllink&

inline constexpr auto operator*() noexcept -> dllink<T>&

get the reference of the current item

Returns

dllink&

Friends

inline friend friend auto operator== (const dll_iterator &lhs, const dll_iterator &rhs) noexcept -> bool

eq operator

Parameters

rhs[in]

Returns

true

Returns

false

inline friend friend auto operator!= (const dll_iterator &lhs, const dll_iterator &rhs) noexcept -> bool

neq operator

Parameters

rhs[in]

Returns

true

Returns

false