-
Notifications
You must be signed in to change notification settings - Fork 0
map.h
Baptiste Thémine edited this page Feb 9, 2020
·
8 revisions
#include <JLC/map.h>
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.
- (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.
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. |