An intrusive list with ownership and callbacks specified/controlled by ilist_traits, only with API safe for polymorphic types.
Synopsis
Declared in <llvm/ADT/ilist.h>
template<
class T,
class... Options>
class iplist
: public iplist_impl<simple_ilist<T, Options...>, ilist_traits<T>>
Description
The Options parameters are the same as those for simple_ilist. See there for a description of what's available.
Base Classes
Name |
Description |
|
A wrapper around an intrusive list with callbacks and non‐intrusive ownership. |
Type Aliases
Name |
Description |
Const bidirectional iterator. |
|
Const pointer to a list element. |
|
Const reference to a list element. |
|
Const reverse bidirectional iterator. |
|
Signed distance between iterators. |
|
Mutable bidirectional iterator. |
|
Mutable pointer to a list element. |
|
Mutable reference to a list element. |
|
Mutable reverse bidirectional iterator. |
|
Unsigned size type for the list. |
|
Element type stored in the list. |
Member Functions
Name |
Description |
|
Constructors |
Assignment operators |
|
Erase and delete every node in the list. |
|
Remove all nodes from the list like clear(), but do not call removeNodeFromList() or deleteNode(). |
|
Clone another list. |
|
|
|
Get the next node, or |
|
Get the previous node, or |
|
|
|
Insert |
|
Return the theoretical maximum number of elements. |
|
|
|
Erase and delete the last node. |
|
Erase and delete the first node. |
|
Insert |
|
Insert |
|
|
|
|
|
Exchange contents with |
Using Declarations
Name |
Description |
Return a reference to the last element. |
|
Return an iterator to the first element. |
|
Return true if the list contains no elements. |
|
Return an iterator to the past‐the‐end sentinel. |
|
Return a reference to the first element. |
|
Return a reverse iterator to the last element. |
|
Return a reverse iterator to the past‐the‐rend sentinel. |
|
Return the number of elements (may be linear time). |
|
Sort the list using operator< or a provided comparator. |
Created with MrDocs