Template Class dll_iterator¶
Defined in File dllist.hpp
Page Contents
Template Parameter Order¶
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&
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
-
inline explicit constexpr dll_iterator(dllink<T> *cur) noexcept¶