> 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::ParameterWrapper

> Class to wrap a parameter with std::any.

Class to wrap a parameter with std::any.

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

---

## Constructors

### ParameterWrapper \[#parameterwrapper]

#### Default

```cpp showLineNumbers={false}
holoscan::ParameterWrapper::ParameterWrapper() = default
```

#### Construct a new \`ParameterWrapper\` object (with param)

inline

explicit

```cpp showLineNumbers={false}
template <typename typeT>
holoscan::ParameterWrapper::ParameterWrapper(
    Parameter<typeT> &param
)
```

Construct a new `ParameterWrapper` object.

**Template parameters**

**`typeT`** `typename`

The type of the parameter.

---

**Parameters**

**`param`** `Parameter<typeT> &`

The parameter to wrap.

---

#### Construct a new \`ParameterWrapper\` object (with value and type and arg type and storage ptr)

inline

```cpp showLineNumbers={false}
holoscan::ParameterWrapper::ParameterWrapper(
    std::any value,
    const std::type_info *type,
    const ArgType &arg_type,
    void *storage_ptr = nullptr
)
```

Construct a new `ParameterWrapper` object.

**Parameters**

**`value`** `std::any`

The parameter to wrap.

---

**`type`** `const std::type_info *`

The type of the parameter.

---

**`arg_type`** `const ArgType &`

The type of the parameter as an [ArgType](argtype).

---

---

## Methods

### type \[#type]

```cpp showLineNumbers={false}
const std::type_info & holoscan::ParameterWrapper::type() const
```

Get the type of the parameter.

**Returns:** The type info of the parameter.

### arg\_type \[#argtype]

```cpp showLineNumbers={false}
const ArgType & holoscan::ParameterWrapper::arg_type() const
```

Get the type of the parameter as an [ArgType](argtype).

**Returns:** The type of the parameter as an [ArgType](argtype).

### value \[#value]

```cpp showLineNumbers={false}
std::any & holoscan::ParameterWrapper::value()
```

Get the value of the parameter.

**Returns:** The reference to the value of the parameter.

### storage\_ptr \[#storageptr]

```cpp showLineNumbers={false}
void * holoscan::ParameterWrapper::storage_ptr() const
```

Get the pointer to the parameter storage.

**Returns:** The pointer to the parameter storage.

---

## Member variables

| Name           | Type                     | Description                                             |
| -------------- | ------------------------ | ------------------------------------------------------- |
| `type_`        | `const std::type_info *` | The element type of [Parameter](../typedefs/parameter). |
| `arg_type_`    | `ArgType`                | The type of the argument.                               |
| `value_`       | `std::any`               | The value of the parameter.                             |
| `storage_ptr_` | `void *`                 | The pointer to the parameter storage.                   |