Available languages: [Python](https://databento.com/docs/api-live/helpers/pit-symbol-map-on-record.python.md) · [C++](https://databento.com/docs/api-live/helpers/pit-symbol-map-on-record.cpp.md) · [Rust](https://databento.com/docs/api-live/helpers/pit-symbol-map-on-record.rust.md) · [Raw](https://databento.com/docs/api-live/helpers/pit-symbol-map-on-record.raw.md)

Source: https://databento.com/docs/api-live/helpers/pit-symbol-map-on-record


### PitSymbolMap::OnRecord

Update the symbol map with the contents of the record.
Only `SymbolMappingMsg` records affect the map; all other record types will be ignored.

#### API method

```cpp
void OnRecord(const Record& rec);
```

#### Parameters

| Parameter | Type | Description |
| `rec` | Record | The record to update the map from. |
