Zth (libzth)
zth::List< T > Class Template Reference

#include <list.h>

Classes

class  iterator
 

Public Types

typedef T type
 
typedef Listable< typeelem_type
 

Public Member Functions

constexpr List () noexcept
 
 ~List () noexcept
 
typeback () const noexcept
 
void push_back (elem_type &elem) noexcept
 
void pop_back () noexcept
 
typefront () const noexcept
 
void push_front (elem_type &elem) noexcept
 
void pop_front () noexcept
 
bool empty () const noexcept
 
void clear () noexcept
 
iterator begin () const noexcept
 
iterator end () const noexcept
 
bool contains (elem_type &elem) const noexcept
 
size_t size () const noexcept
 
iterator insert (iterator const &pos, elem_type &elem) noexcept
 
iterator erase (iterator const &pos) noexcept
 
void erase (elem_type &elem) noexcept
 
bool contains (type &elem) const noexcept
 
void rotate (elem_type &elem) noexcept
 

Detailed Description

template<typename T>
class zth::List< T >

Definition at line 97 of file list.h.

Member Typedef Documentation

◆ elem_type

template<typename T >
typedef Listable<type> zth::List< T >::elem_type

Definition at line 102 of file list.h.

◆ type

template<typename T >
typedef T zth::List< T >::type

Definition at line 101 of file list.h.

Constructor & Destructor Documentation

◆ List()

template<typename T >
constexpr zth::List< T >::List ( )
inlineconstexprnoexcept

Definition at line 104 of file list.h.

◆ ~List()

template<typename T >
zth::List< T >::~List ( )
inlinenoexcept

Definition at line 109 of file list.h.

Member Function Documentation

◆ back()

template<typename T >
type& zth::List< T >::back ( ) const
inlinenoexcept

Definition at line 115 of file list.h.

◆ begin()

template<typename T >
iterator zth::List< T >::begin ( ) const
inlinenoexcept

Definition at line 301 of file list.h.

◆ clear()

template<typename T >
void zth::List< T >::clear ( )
inlinenoexcept

Definition at line 203 of file list.h.

◆ contains() [1/2]

template<typename T >
bool zth::List< T >::contains ( elem_type elem) const
inlinenoexcept

Definition at line 311 of file list.h.

◆ contains() [2/2]

template<typename T >
bool zth::List< T >::contains ( type elem) const
inlinenoexcept

Definition at line 375 of file list.h.

◆ empty()

template<typename T >
bool zth::List< T >::empty ( ) const
inlinenoexcept

Definition at line 197 of file list.h.

◆ end()

template<typename T >
iterator zth::List< T >::end ( ) const
inlinenoexcept

Definition at line 306 of file list.h.

◆ erase() [1/2]

template<typename T >
void zth::List< T >::erase ( elem_type elem)
inlinenoexcept

Definition at line 360 of file list.h.

◆ erase() [2/2]

template<typename T >
iterator zth::List< T >::erase ( iterator const &  pos)
inlinenoexcept

Definition at line 344 of file list.h.

◆ front()

template<typename T >
type& zth::List< T >::front ( ) const
inlinenoexcept

Definition at line 156 of file list.h.

◆ insert()

template<typename T >
iterator zth::List< T >::insert ( iterator const &  pos,
elem_type elem 
)
inlinenoexcept

Definition at line 327 of file list.h.

◆ pop_back()

template<typename T >
void zth::List< T >::pop_back ( )
inlinenoexcept

Definition at line 136 of file list.h.

◆ pop_front()

template<typename T >
void zth::List< T >::pop_front ( )
inlinenoexcept

Definition at line 177 of file list.h.

◆ push_back()

template<typename T >
void zth::List< T >::push_back ( elem_type elem)
inlinenoexcept

Definition at line 121 of file list.h.

◆ push_front()

template<typename T >
void zth::List< T >::push_front ( elem_type elem)
inlinenoexcept

Definition at line 162 of file list.h.

◆ rotate()

template<typename T >
void zth::List< T >::rotate ( elem_type elem)
inlinenoexcept

Definition at line 383 of file list.h.

◆ size()

template<typename T >
size_t zth::List< T >::size ( ) const
inlinenoexcept

Definition at line 319 of file list.h.


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