Skip to content

array.h

Baptiste Thémine edited this page Feb 9, 2020 · 8 revisions
#include <JLC/array.h>

Description

Definition of fixed-size iterable container class.

An array holds a specific number of elements fixed at object construction. Unlike other iterable container classes such as collection, an array cannnot be expanded or contracted dynamically but element access is faster. Elements are accessible through the bracket operator [] at unique index within array starting from 0 to size-1. Zero-sized arrays are valid but cannot be dereferenced.

Requirements

  • (Mandatory) <cstdio>, <cstdlib>, <iostream>, <iterator>, <stdexcept>, <JLC/debug.h> and <JLC/functions.h> must be included.
  • (Optional) <functional> and <initializer_list> provide additional features from C++11.

Content

Name Description
array Defines the namespace array and provides types, constants, exceptions and utility functions for array manipulation.
Array Defines the class Array and provides array methods.

See also

Clone this wiki locally