50 template <
typename T, const
size_t MAX_SIZE_>
55 static const size_t MAX_SIZE = MAX_SIZE_;
61 typedef const T* const_pointer;
63 typedef const T& const_reference;
64 typedef size_t size_type;
77 explicit forward_list(
size_t initialSize,
typename iforward_list<T>::parameter_t value = T())
95 template <
typename TIterator>
127 this->
end_node.next = &node_pool[index];
130 for (
size_t i = 0; i < MAX_SIZE; ++i)
137 node.next = &other.node_pool[index];
145 other.
start_node.next = &other.node_pool[index];
151 other.
end_node.next = &other.node_pool[index];
154 for (
size_t i = 0; i < MAX_SIZE; ++i)
161 node.next = &node_pool[index];
180 template <
typename T, const
size_t MAX_SIZE>
const_iterator cbegin() const
Gets the beginning of the forward_list.
Definition: iforward_list.h:312
Node start_node
The node that acts as the forward_list start.
Definition: iforward_list.h:966
void swap(etl::bitset< N > &lhs, etl::bitset< N > &rhs)
swap
Definition: bitset.h:1200
size_type next_free
The index of the next free node.
Definition: forward_list_base.h:147
forward_list(size_t initialSize, typename iforward_list< T >::parameter_t value=T())
Construct from size and value.
Definition: forward_list.h:77
void swap(forward_list &other)
Swap.
Definition: forward_list.h:115
const_iterator cend() const
Gets the end of the forward_list.
Definition: iforward_list.h:336
Definition: forward_list.h:51
Definition: algorithm.h:43
void assign(TIterator first, TIterator last)
If ETL_THROW_EXCEPTIONS & _DEBUG are defined throws forward_list_iterator if the iterators are revers...
Definition: iforward_list.h:381
The data node element in the forward_list.
Definition: iforward_list.h:97
TContainer::iterator end(TContainer &container)
Definition: container.h:95
TContainer::iterator begin(TContainer &container)
Definition: container.h:45
forward_list()
Default constructor.
Definition: forward_list.h:69
forward_list & operator=(const forward_list &rhs)
Assignment operator.
Definition: forward_list.h:105
forward_list(const forward_list &other)
Copy constructor.
Definition: forward_list.h:86
Node end_node
The node that acts as the forward_list end.
Definition: iforward_list.h:967
forward_list(TIterator first, TIterator last)
Construct from range.
Definition: forward_list.h:96
size_type count
The number of the used nodes.
Definition: forward_list_base.h:148
Definition: iforward_list.h:74
Definition: iforward_list.h:54