MySQL 8.0.39
Source Code Documentation
ut_list_base< Type, NodeGetter >::Removable Class Reference

A helper wrapper class for the list, which exposes begin(),end() iterators which let you remove the current item or items after it during the loop, while still having O(1) space and time complexity. More...

#include <ut0lst.h>

Classes

class  iterator
 

Public Member Functions

 Removable (ut_list_base &list)
 
iterator begin ()
 
iterator end ()
 

Private Attributes

ut_list_basem_list
 

Detailed Description

template<typename Type, typename NodeGetter>
class ut_list_base< Type, NodeGetter >::Removable

A helper wrapper class for the list, which exposes begin(),end() iterators which let you remove the current item or items after it during the loop, while still having O(1) space and time complexity.

NOTE: do not attempt to (re)move the previous element!

Constructor & Destructor Documentation

◆ Removable()

template<typename Type , typename NodeGetter >
ut_list_base< Type, NodeGetter >::Removable::Removable ( ut_list_base list)
inline

Member Function Documentation

◆ begin()

template<typename Type , typename NodeGetter >
iterator ut_list_base< Type, NodeGetter >::Removable::begin ( void  )
inline

◆ end()

template<typename Type , typename NodeGetter >
iterator ut_list_base< Type, NodeGetter >::Removable::end ( void  )
inline

Member Data Documentation

◆ m_list

template<typename Type , typename NodeGetter >
ut_list_base& ut_list_base< Type, NodeGetter >::Removable::m_list
private

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