Skip to content
Baptiste Thémine edited this page Dec 2, 2019 · 8 revisions
#include <JLC/map.h>

Description

Definition of associative container class extending Collection.

The main purpose of class Map is to provide a set of groups i.e. a set of values associated with a unique key. Elements are accessible through the bracket operator [], identified by their key within map. Zero-sized maps are valid but cannot be dereferenced. Once modifications are completed, a map 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>, <JLC/collection.h> and <JLC/containers.h> must be included.
  • (Optional) <functional> and <initializer_list> provide additional features from C++11.

Content

Name Description
map Defines the namespace map and provides types, constants, exceptions and utility functions for map manipulation.
Map Defines the class Map and provides map methods.
collectors Provides classes for stream collect operations.

See also

Clone this wiki locally