L4Re Operating System Framework
Interface and Usage Documentation
|
Internal: Common functions for all head-based list implementations. More...
#include <list_basics.h>
Public Member Functions | |
bool | empty () const |
Check if the list is empty. | |
Value_type | front () const |
Return the first element in the list. | |
void | clear () |
Remove all elements from the list. | |
Iterator | begin () |
Return an iterator to the beginning of the list. | |
Const_iterator | begin () const |
Return a const iterator to the beginning of the list. | |
Const_iterator | end () const |
Return a const iterator to the end of the list. | |
Iterator | end () |
Return an iterator to the end of the list. | |
Static Public Member Functions | |
static Const_iterator | iter (Const_value_type c) |
Return a const iterator that begins at the given element. | |
Protected Attributes | |
POLICY::Head_type | _f |
Pointer to front of the list. | |
Internal: Common functions for all head-based list implementations.
Definition at line 50 of file list_basics.h.
|
inline |
Remove all elements from the list.
After the operation the state of the elements is undefined.
Definition at line 146 of file list_basics.h.
References cxx::Bits::Basic_list< POLICY >::_f.
|
inlinestatic |
Return a const iterator that begins at the given element.
c | Element where the iterator should start. |
c
must already be in a list. Definition at line 159 of file list_basics.h.