|
Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
|
Singly linked list with typed nodes. More...
Go to the source code of this file.
Classes | |
| class | Aleph::Slist< T > |
Singly linked list of nodes that store values of type T. More... | |
| class | Aleph::Slist< T >::Iterator |
| Iterator over singly linked nodes. More... | |
Namespaces | |
| namespace | Aleph |
| Main namespace for Aleph-w library functions. | |
Singly linked list with typed nodes.
This file provides Slist, a simple singly linked list where each node stores a value of type T. Designed for minimal memory overhead and simple forward traversal.
| Operation | Time |
|---|---|
| insert_first | O(1) |
| remove_first | O(1) |
| search | O(n) |
| reverse | O(n) |
Definition in file tpl_slist.H.