> This page is for version 5.0.
> For other versions, use one of these documentation indexes:
> - 5.1 (Latest) (default): https://docs.nvidia.com/holoscan/sdk-user-guide/5-1-latest/llms.txt
> - ltsb-2.0: https://docs.nvidia.com/holoscan/sdk-user-guide/ltsb-2-0/llms.txt
> - 5.0: https://docs.nvidia.com/holoscan/sdk-user-guide/5-0/llms.txt
> - 4.6: https://docs.nvidia.com/holoscan/sdk-user-guide/4-6/llms.txt
> - 4.5: https://docs.nvidia.com/holoscan/sdk-user-guide/4-5/llms.txt
> - 4.4: https://docs.nvidia.com/holoscan/sdk-user-guide/4-4/llms.txt
> - 4.3: https://docs.nvidia.com/holoscan/sdk-user-guide/4-3/llms.txt
> - Archives: https://docs.nvidia.com/holoscan/sdk-user-guide/archives/llms.txt

> 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.

# holoscan::config::merge_config_values

> Recursively merge object values while replacing arrays and scalars as whole values.

```cpp showLineNumbers={false}
HOLOSCAN_CONFIG_EXPORT ConfigValue holoscan::config::merge_config_values(
    const ConfigValue &baseline,
    const ConfigValue &patch
)
```

Recursively merge object values while replacing arrays and scalars as whole values.

**Returns:** The merged immutable value.

**Throws:** `ConfigException` on limit or allocation failure.

**Parameters**

**`baseline`** `const ConfigValue &`

Immutable baseline value.

---

**`patch`** `const ConfigValue &`

Immutable patch value. Object/object pairs recurse; every other pair replaces the baseline with `patch`.

---