#include <list.hpp>
template<typename T, class TAllocator = std::allocator>
class std::list< T, TAllocator >
◆ allocator_type
template<typename T, class TAllocator = std::allocator>
◆ const_iterator
template<typename T, class TAllocator = std::allocator>
◆ iterator
template<typename T, class TAllocator = std::allocator>
◆ size_type
template<typename T, class TAllocator = std::allocator>
◆ value_type
template<typename T, class TAllocator = std::allocator>
◆ list() [1/3]
template<typename T, class TAllocator = std::allocator>
150 : m_allocator(allocator)
◆ list() [2/3]
template<typename T, class TAllocator = std::allocator>
template<class InputIterator >
155 : m_allocator(allocator)
void assign(InputIterator first, InputIterator last)
Definition: list.hpp:265
◆ list() [3/3]
template<typename T, class TAllocator = std::allocator>
161 : m_allocator(allocator)
164 assign(rhs.begin(), rhs.end());
void assign(InputIterator first, InputIterator last)
Definition: list.hpp:265
◆ ~list()
template<typename T, class TAllocator = std::allocator>
void clear()
Definition: list.hpp:280
◆ assign()
template<typename T, class TAllocator = std::allocator>
template<class InputIterator >
void std::list< T, TAllocator >::assign |
( |
InputIterator |
first, |
|
|
InputIterator |
last |
|
) |
| |
|
inline |
268 while (first != last)
void clear()
Definition: list.hpp:280
void push_back(const T &value)
Definition: list.hpp:229
◆ back() [1/2]
template<typename T, class TAllocator = std::allocator>
const T& std::list< T, TAllocator >::back |
( |
| ) |
const |
|
inline |
209 assert(!
empty());
return upcast(m_root.prev)->value;
bool empty() const
Definition: list.hpp:275
◆ back() [2/2]
template<typename T, class TAllocator = std::allocator>
213 assert(!
empty());
return upcast(m_root.prev)->value;
bool empty() const
Definition: list.hpp:275
◆ begin() [1/2]
template<typename T, class TAllocator = std::allocator>
182 return iterator(upcast(m_root.next));
node_iterator< node *, T *, T & > iterator
Definition: list.hpp:145
◆ begin() [2/2]
template<typename T, class TAllocator = std::allocator>
node_iterator< const node *, const T *, const T & > const_iterator
Definition: list.hpp:146
◆ clear()
template<typename T, class TAllocator = std::allocator>
282 node* it = upcast(m_root.next);
283 while (it != &m_root)
285 node* nextIt = upcast(it->next);
◆ empty()
template<typename T, class TAllocator = std::allocator>
bool std::list< T, TAllocator >::empty |
( |
| ) |
const |
|
inline |
277 return !m_root.in_list();
◆ end() [1/2]
template<typename T, class TAllocator = std::allocator>
node_iterator< node *, T *, T & > iterator
Definition: list.hpp:145
◆ end() [2/2]
template<typename T, class TAllocator = std::allocator>
node_iterator< const node *, const T *, const T & > const_iterator
Definition: list.hpp:146
◆ erase() [1/2]
template<typename T, class TAllocator = std::allocator>
250 assert(it.node()->in_list());
253 itErase.node()->unlink();
254 destruct_node(itErase.node());
node_iterator< node *, T *, T & > iterator
Definition: list.hpp:145
◆ erase() [2/2]
template<typename T, class TAllocator = std::allocator>
259 while (first != last)
260 first =
erase(first);
iterator erase(iterator it)
Definition: list.hpp:248
◆ front() [1/2]
template<typename T, class TAllocator = std::allocator>
const T& std::list< T, TAllocator >::front |
( |
| ) |
const |
|
inline |
200 return upcast(m_root.next)->value;
bool empty() const
Definition: list.hpp:275
◆ front() [2/2]
template<typename T, class TAllocator = std::allocator>
205 return upcast(m_root.next)->value;
bool empty() const
Definition: list.hpp:275
◆ get_allocator()
template<typename T, class TAllocator = std::allocator>
◆ insert()
template<typename T, class TAllocator = std::allocator>
244 node* newNode = construct_node(value);
245 newNode->link_before(pos.node());
node_iterator< node *, T *, T & > iterator
Definition: list.hpp:145
◆ operator=()
template<typename T, class TAllocator = std::allocator>
175 assign(rhs.begin(), rhs.end());
void assign(InputIterator first, InputIterator last)
Definition: list.hpp:265
◆ pop_back()
template<typename T, class TAllocator = std::allocator>
void std::list< T, TAllocator >::pop_back |
( |
| ) |
|
|
inline |
237 node* backNode = upcast(m_root.prev);
239 destruct_node(backNode);
bool empty() const
Definition: list.hpp:275
◆ pop_front()
template<typename T, class TAllocator = std::allocator>
void std::list< T, TAllocator >::pop_front |
( |
| ) |
|
|
inline |
224 node* frontNode = upcast(m_root.next);
226 destruct_node(frontNode);
bool empty() const
Definition: list.hpp:275
◆ push_back()
template<typename T, class TAllocator = std::allocator>
void std::list< T, TAllocator >::push_back |
( |
const T & |
value | ) |
|
|
inline |
231 node* newNode = construct_node(value);
232 newNode->link_before(&m_root);
◆ push_front()
template<typename T, class TAllocator = std::allocator>
void std::list< T, TAllocator >::push_front |
( |
const T & |
value | ) |
|
|
inline |
218 node* newNode = construct_node(value);
219 newNode->link_before(m_root.next);
◆ set_allocator()
template<typename T, class TAllocator = std::allocator>
310 m_allocator = allocator;
◆ size()
template<typename T, class TAllocator = std::allocator>
294 const node* it = upcast(m_root.next);
296 while (it != &m_root)
299 it = upcast(it->next);
int size_type
Definition: list.hpp:144
size_type size() const
Definition: list.hpp:292
◆ kNodeSize
template<typename T, class TAllocator = std::allocator>
const size_t std::list< T, TAllocator >::kNodeSize = sizeof(node) |
|
static |
Die Dokumentation für diese Klasse wurde erzeugt aufgrund der Datei: