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

Source: https://databento.com/docs/api-historical/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. |
