Provides an abstract type for a standard map data structures. These are data structures which consist of key-value pairs, with only one value per key. It is similar to the dictionary type in Python.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(map), | intent(inout) | :: | this | |||
class(map), | intent(in) | :: | other | A map whose key-value pairs will be added to this one, overwriting as necessary. |
procedure(get_func), public, deferred :: get | Returns the value associated with the specified key. |
procedure(update_sub), public, deferred :: update | Adds any key-value pairs in the second map not already present. Updates the value for all keys in this dictionary also present in the second dictionary. |
An abstract type for the standard map data structures. These are data structures which consist of key-value pairs, with only one value per key. It has similar functionality to the dictionary type in Python.