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

Detailed Description

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

The base class of an element.

Every type that is used as an element of an fcppt::intrusive::list must derive from this class.

Template Parameters
TypeThe derived type.

Public Types

using list_type = fcppt::intrusive::list<Type>
 

Public Member Functions

 base (list_type &)
 Inserts the element at the back of a list.
 
 base (base &&) noexcept
 
baseoperator= (base &&) noexcept
 
 ~base ()
 
void unlink () noexcept
 Unlinks this element from the list.
 

Friends

template<typename T >
class fcppt::intrusive::list
 
template<typename T >
class fcppt::intrusive::iterator
 

Member Typedef Documentation

◆ list_type

template<typename Type >
using fcppt::intrusive::base< Type >::list_type = fcppt::intrusive::list<Type>

Constructor & Destructor Documentation

◆ base() [1/2]

template<typename Type >
fcppt::intrusive::base< Type >::base ( list_type & )
explicit

Inserts the element at the back of a list.

◆ base() [2/2]

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

◆ ~base()

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

Member Function Documentation

◆ operator=()

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

◆ unlink()

template<typename Type >
void fcppt::intrusive::base< Type >::unlink ( )
noexcept

Unlinks this element from the list.

Friends And Related Symbol Documentation

◆ fcppt::intrusive::iterator

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

◆ fcppt::intrusive::list

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