4.6.0
Freundlich's C++ toolkit
Loading...
Searching...
No Matches
fcppt::intrusive::list< Type > Class Template Reference

Detailed Description

template<typename Type>
class fcppt::intrusive::list< Type >

An intrusive list.

Elements that are going to be part of a list must derive from fcppt::intrusive::base<Type>. They get a list as a constructor parameter and as long as they are not destroyed or moved from, they are part of the list.

Public Types

using iterator = fcppt::intrusive::iterator<Type>
 
using const_iterator = fcppt::intrusive::iterator<Type const>
 

Public Member Functions

 list ()
 
 list (list &&) noexcept
 
listoperator= (list &&) noexcept
 
 ~list ()
 
iterator begin ()
 
iterator end ()
 
const_iterator begin () const
 
const_iterator end () const
 
bool empty () const
 

Friends

template<typename T >
class fcppt::intrusive::base
 

Member Typedef Documentation

◆ const_iterator

template<typename Type >
using fcppt::intrusive::list< Type >::const_iterator = fcppt::intrusive::iterator<Type const>

◆ iterator

template<typename Type >
using fcppt::intrusive::list< Type >::iterator = fcppt::intrusive::iterator<Type>

Constructor & Destructor Documentation

◆ list() [1/2]

template<typename Type >
fcppt::intrusive::list< Type >::list ( )

◆ list() [2/2]

template<typename Type >
fcppt::intrusive::list< Type >::list ( list< Type > && )
noexcept

◆ ~list()

template<typename Type >
fcppt::intrusive::list< Type >::~list ( )

Member Function Documentation

◆ begin() [1/2]

template<typename Type >
iterator fcppt::intrusive::list< Type >::begin ( )
nodiscard

◆ begin() [2/2]

template<typename Type >
const_iterator fcppt::intrusive::list< Type >::begin ( ) const
nodiscard

◆ empty()

template<typename Type >
bool fcppt::intrusive::list< Type >::empty ( ) const
nodiscard

◆ end() [1/2]

template<typename Type >
iterator fcppt::intrusive::list< Type >::end ( )
nodiscard

◆ end() [2/2]

template<typename Type >
const_iterator fcppt::intrusive::list< Type >::end ( ) const
nodiscard

◆ operator=()

template<typename Type >
list & fcppt::intrusive::list< Type >::operator= ( list< Type > && )
noexcept

Friends And Related Symbol Documentation

◆ fcppt::intrusive::base

template<typename Type >
template<typename T >
friend class fcppt::intrusive::base
friend