L4Re Operating System Framework
Interface and Usage Documentation
|
List of smart-pointer-managed objects. More...
#include <smart_ptr_list.h>
Public Member Functions | |
void | push_front (Next_type &&e) |
Add an element to the front of the list. | |
void | push_front (Next_type const &e) |
Add an element to the front of the list. | |
void | push_back (Next_type &&e) |
Add an element at the end of the list. | |
void | push_back (Next_type const &e) |
Add an element at the end of the list. | |
Value_type * | front () const |
Return a pointer to the first element in the list. | |
Next_type | pop_front () |
Remove the element in front of the list and return it. | |
bool | empty () const |
Check if the list is empty. | |
List of smart-pointer-managed objects.
ITEM | Type of the list items. |
The list is implemented as a single-linked list connected via smart pointers, so that they are automatically cleaned up when they are removed from the list.
Definition at line 47 of file smart_ptr_list.h.
|
inline |
Remove the element in front of the list and return it.
Definition at line 150 of file smart_ptr_list.h.