# uproot.STLMap

Defined in [uproot.containers](https://github.com/scikit-hep/uproot5/blob/db953cf9827349b3d24eb6742404158c1dfd5481/src/uproot/containers.py) on [line 1791](https://github.com/scikit-hep/uproot5/blob/db953cf9827349b3d24eb6742404158c1dfd5481/src/uproot/containers.py#L1791).

| **Inheritance order:**                                                                                                                                                                                                                                 |
|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| 1. [uproot.containers.Container](uproot.containers.Container.html.md)<br/>2. `collections.abc.Mapping`<br/>3. `collections.abc.Collection`<br/>4. `collections.abc.Sized`<br/>5. `collections.abc.Iterable`<br/>6. `collections.abc.Container` |

### *class* uproot.containers.STLMap(keys, values)

* **Parameters:**
  * **keys** (`numpy.ndarray` or iterable) – Keys of the `std::map`.
  * **values** (`numpy.ndarray` or iterable) – Values of the `std::map`.

Representation of a C++ `std::map` as a Python `Mapping`.

The `keys` and `values` must have the same length.

<a id="uproot-containers-stlmap-from-mapping"></a>

## from_mapping

#### *classmethod* STLMap.from_mapping(mapping)

Construct a [uproot.STLMap](uproot.containers.STLMap.html.md) from a Python object with
`keys()` and `values()`.

<a id="uproot-containers-stlmap-keys"></a>

## keys

#### STLMap.keys()

Keys of the `std::map` as a `numpy.ndarray`.

<a id="uproot-containers-stlmap-values"></a>

## values

#### STLMap.values()

Values of the `std::map` as a `numpy.ndarray`.

<a id="uproot-containers-stlmap-items"></a>

## items

#### STLMap.items()

Key, value pairs of the `std::map` as a `numpy.ndarray`.

<a id="uproot-containers-stlmap-get"></a>

## get

#### STLMap.get(where, default=None)

Get with a default, like dict.get.

<a id="uproot-containers-stlmap-tolist"></a>

## tolist

Inherited from [uproot.containers.Container](uproot.containers.Container.html.md).

#### STLMap.tolist()

Convert the data this collection contains into nested lists, sets,
and dicts.
