|
Embedded Template Library
1.0
|
#include <forward_list_base.h>
Public Types | |
| typedef size_t | size_type |
| The type used for determining the size of forward_list. | |
Public Member Functions | |
| size_type | size () const |
| Gets the size of the forward_list. | |
| size_type | max_size () const |
| Gets the maximum possible size of the forward_list. | |
| bool | empty () const |
| Checks to see if the forward_list is empty. | |
| bool | full () const |
| Checks to see if the forward_list is full. | |
| size_t | available () const |
Protected Member Functions | |
| forward_list_base (size_type max_size) | |
| The constructor that is called from derived classes. | |
Protected Attributes | |
| size_type | next_free |
| The index of the next free node. | |
| size_type | count |
| The number of the used nodes. | |
| const size_type | MAX_SIZE |
| The maximum size of the forward_list. | |
The base class for all forward_lists.
|
inline |
Returns the remaining capacity.