|
| intrusive_forward_list () |
| Constructor.
|
|
| ~intrusive_forward_list () |
| Destructor.
|
|
template<typename TIterator > |
| intrusive_forward_list (TIterator first, TIterator last, typename etl::enable_if<!etl::is_integral< TIterator >::value, int >::type=0) |
| Constructor from range.
|
|
iterator | begin () |
| Gets the beginning of the intrusive_forward_list.
|
|
const_iterator | begin () const |
| Gets the beginning of the intrusive_forward_list.
|
|
iterator | before_begin () |
| Gets before the beginning of the intrusive_forward_list.
|
|
const_iterator | before_begin () const |
| Gets before the beginning of the intrusive_forward_list.
|
|
const_iterator | cbegin () const |
| Gets the beginning of the intrusive_forward_list.
|
|
iterator | end () |
| Gets the end of the intrusive_forward_list.
|
|
const_iterator | end () const |
| Gets the end of the intrusive_forward_list.
|
|
const_iterator | cend () const |
| Gets the end of the intrusive_forward_list.
|
|
reference | front () |
| Gets a reference to the first element.
|
|
const_reference | front () const |
| Gets a const reference to the first element.
|
|
iterator | insert_after (iterator position, value_type &value) |
| Inserts a value to the intrusive_forward_list after the specified position.
|
|
template<typename TIterator > |
void | insert_after (iterator position, TIterator first, TIterator last) |
| Inserts a range of values to the intrusive_forward_list after the specified position.
|
|
iterator | erase_after (iterator position) |
| Erases the value at the specified position.
|
|
iterator | erase_after (iterator first, iterator last) |
| Erases a range of elements.
|
|
template<typename TIsEqual > |
void | unique (TIsEqual isEqual) |
|
void | sort () |
| Sort using in-place merge sort algorithm.
|
|
template<typename TCompare > |
void | sort (TCompare compare) |
|
void | remove (const_reference value) |
|
template<typename TPredicate > |
void | remove_if (TPredicate predicate) |
| Removes according to a predicate.
|
|
void | splice_after (iterator position, etl::intrusive_forward_list< TValue, TLink > &other) |
| Splice another list into this one.
|
|
void | splice_after (iterator position, etl::intrusive_forward_list< TValue, TLink > &other, iterator isource) |
| Splice an element from another list into this one.
|
|
void | splice_after (iterator position, etl::intrusive_forward_list< TValue, TLink > &other, iterator begin_, iterator end_) |
| Splice a range of elements from another list into this one.
|
|
void | merge (list_type &other) |
| Merge another list into this one. Both lists should be sorted.
|
|
template<typename TCompare > |
void | merge (list_type &other, TCompare compare) |
| Merge another list into this one. Both lists should be sorted.
|
|
void | clear () |
| Clears the intrusive_forward_list.
|
|
template<typename TIterator > |
void | assign (TIterator first, TIterator last) |
|
void | push_front (link_type &value) |
| Pushes a value to the front of the intrusive_forward_list.
|
|
void | pop_front () |
| Removes a value from the front of the intrusive_forward_list.
|
|
void | reverse () |
| Reverses the intrusive_forward_list.
|
|
bool | empty () const |
| Returns true if the list has no elements.
|
|
size_t | size () const |
| Returns the number of elements.
|
|
template<typename TValue, typename TLink>
class etl::intrusive_forward_list< TValue, TLink >
An intrusive forward list.
- Note
- TLink must be a base of TValue.
template<typename TValue , typename TLink >
template<typename TCompare >
Stable sort using in-place merge sort algorithm. Copyright 2001 Simon Tatham.
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL SIMON TATHAM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.