MySQL 8.0.39
Source Code Documentation
IntrusiveListIterator< T, NextPointer > Class Template Reference

An iterator that follows the 'next' pointer in an intrusive list. More...

#include <intrusive_list_iterator.h>

Inheritance diagram for IntrusiveListIterator< T, NextPointer >:
[legend]

Public Member Functions

 IntrusiveListIterator ()=default
 
 IntrusiveListIterator (T *t)
 
- Public Member Functions inherited from NextFunctionIterator< T, GetMember< T, NextPointer > >
 NextFunctionIterator (T *start)
 Constructs an iterator. More...
 
 NextFunctionIterator ()
 Constructs a past-the-end iterator. More...
 
NextFunctionIteratoroperator++ ()
 
NextFunctionIterator operator++ (int)
 
T * operator* () const
 
bool operator== (const NextFunctionIterator &other) const
 
bool operator!= (const NextFunctionIterator &other) const
 

Additional Inherited Members

- Public Types inherited from NextFunctionIterator< T, GetMember< T, NextPointer > >
using value_type = T *
 

Detailed Description

template<typename T, T *T::* NextPointer>
class IntrusiveListIterator< T, NextPointer >

An iterator that follows the 'next' pointer in an intrusive list.

Conforms to the ForwardIterator named requirement.

Template Parameters
TThe type of the object holding the intrusive list.
NextPointerThe intrusive list's "next" pointer member.

Constructor & Destructor Documentation

◆ IntrusiveListIterator() [1/2]

template<typename T , T *T::* NextPointer>
IntrusiveListIterator< T, NextPointer >::IntrusiveListIterator ( )
default

◆ IntrusiveListIterator() [2/2]

template<typename T , T *T::* NextPointer>
IntrusiveListIterator< T, NextPointer >::IntrusiveListIterator ( T *  t)
inlineexplicit

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