Skip to content
Baptiste Thémine edited this page Jul 5, 2020 · 10 revisions
#include <JLC/list.h>

Description

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.

Requirements

  • (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.

Content

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.

See also

Clone this wiki locally