-
Notifications
You must be signed in to change notification settings - Fork 0
list.h
Baptiste Thémine edited this page Jul 5, 2020
·
10 revisions
#include <JLC/list.h>
Definition of variable-size iterable container class extending Collection.
The main purpose of class List is to provide setter methods to build, modify or shrink an index-based set of elements.
Elements are accessible through the bracket operator []
at unique index within list starting from 0
to size-1
.
Zero-sized lists are valid but cannot be dereferenced.
Once modifications are completed, a list can then be transformed into a stream to perform search and sorting operations.
- (Mandatory)
<cstdio>
,<cstdlib>
,<iostream>
,<iterator>
,<stdexcept>
,<JLC/debug.h>
,<JLC/functions.h>
and<JLC/collection.h>
must be included. - (Optional)
<functional>
and<initializer_list>
provide additional features from C++11.
Name | Description |
---|---|
class List | Defines the class List and provides list methods. |
namespace list | Defines the namespace list and provides types, constants, exceptions and utility functions for list manipulation. |