Learn R Programming

datastructures (version 0.2.9)

multimap-class: Multimap class

Description

Implementation of a multimap data structure, i.e. an unordered collection of key-value pairs: $$f: keys -> values.$$ Multimaps are able to store several identical keys. For a data structure which unique keys, see hashmap. Inserting and accessing is amortized in O(1). hashmap wraps a C++ unordered_multimap using Rcpp modules. Also see '>bimap for mappings in both ways.

Arguments

Slots

.map

C++ object representing a mapping

.key.class

the class of the keys

See Also

multimap for creating a new multimap object