> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.nvidia.com/holoscan/sdk-user-guide/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.nvidia.com/holoscan/sdk-user-guide/_mcp/server.

# holoscan::codec< std::unordered_map< KeyType, ValueType > >

```cpp showLineNumbers={false}
template <typename KeyType, typename ValueType>
struct unordered_map< KeyType, ValueType > >
```

```cpp showLineNumbers={false}
#include <holoscan/codecs.hpp>
```

**Template parameters**

***

## Static methods

### serialize \[#serialize]

```cpp showLineNumbers={false}
static expected<size_t, RuntimeError> holoscan::codec<std::unordered_map<KeyType, ValueType>>::serialize(
    const std::unordered_map<KeyType, ValueType> &value,
    Endpoint *endpoint
)
```

### deserialize \[#deserialize]

```cpp showLineNumbers={false}
static expected<std::unordered_map<KeyType, ValueType>, RuntimeError> holoscan::codec<std::unordered_map<KeyType, ValueType>>::deserialize(
    Endpoint *endpoint
)
```