> ## Documentation Index
> Fetch the complete documentation index at: https://developer.synopsys.com/llms.txt
> Use this file to discover all available pages before exploring further.

# utility:merge any objects

**Version: 0.0.0**

## Description

Merges a list of objects having the same data types. Once the data type is found, the merge operation is forwarded to the correct merge Operator.

## Inputs

This table lists the input pins for this operator. Input pins define the data that the operator requires to perform its operation.
Some inputs are required, while others are optional and provide additional configuration.
Each parameter is detailed in the sections that follow the table.

| Pin number | Name | Status | Expected type(s) |
| - | - | - | - |
| **0** | [any](#input_0) | Required | [`any`](https://developer.synopsys.com/docs/dpf/dpf-framework/core-concepts/dpf-types#any) |

### any (Pin 0)

* **Required:** Yes
* **Expected type(s):** [`any`](https://developer.synopsys.com/docs/dpf/dpf-framework/core-concepts/dpf-types#any)

Either a vector of objects (sharing the same data types) or objects from pin 0 to ... to merge. Supported types rely on existing type specific merge operators.

## Outputs

This table lists the output pins for this operator.
Output pins provide the results of the operator's computation and can be connected to inputs of other operators or retrieved for further processing.
Each output is detailed in the sections that follow the table.

| Pin number | Name | Expected type(s) |
| - | - | - |
| **0** | [any](#output_0) | [`any`](https://developer.synopsys.com/docs/dpf/dpf-framework/core-concepts/dpf-types#any) |

### any (Pin 0)

* **Expected type(s):** [`any`](https://developer.synopsys.com/docs/dpf/dpf-framework/core-concepts/dpf-types#any)

## Configurations

This operator supports [configuration options](https://developer.synopsys.com/docs/dpf/dpf-framework/core-concepts/operator-configurations.md) that modify its behavior.

### [mutex](https://developer.synopsys.com/docs/dpf/dpf-framework/core-concepts/operator-configurations.md#mutex)

* **Expected type(s):** [`bool`](https://developer.synopsys.com/docs/dpf/dpf-framework/core-concepts/dpf-types#standard-types)
* **Default value:** false

If this option is set to true, the shared memory is prevented from being simultaneously accessed by multiple threads.

### [read\_inputs\_in\_parallel](https://developer.synopsys.com/docs/dpf/dpf-framework/core-concepts/operator-configurations.md#read_inputs_in_parallel)

* **Expected type(s):** [`bool`](https://developer.synopsys.com/docs/dpf/dpf-framework/core-concepts/dpf-types#standard-types)
* **Default value:** false

If this option is set to true, the operator's inputs will be evaluated in parallel.

## Scripting

This operator can be accessed through scripting interfaces using these identifiers.

**Category**: utility

**Plugin**: core

**Scripting name**: merge\_any

**Full name**: utility.merge\_any

**Internal name**: merge::any

**License**: None

## Examples

These examples demonstrate how to use this operator in different programming environments.
Each example shows how to instantiate the operator, connect the required inputs, and retrieve the output.

<details>
  <summary>C++</summary>

  ```cpp theme={null}
  #include "dpf_api.h"

  ansys::dpf::Operator op("merge::any"); // operator instantiation
  op.connect(0, my_any);
  ansys::dpf::Any my_any = op.getOutput<ansys::dpf::Any>(0);
  ```
</details>

<details>
  <summary>CPython</summary>

  ```python theme={null}
  import ansys.dpf.core as dpf

  op = dpf.operators.utility.merge_any() # operator instantiation
  op.inputs.any1.connect(my_any1)
  op.inputs.any2.connect(my_any2)
  my_any = op.outputs.any()
  ```
</details>

<details>
  <summary>IPython</summary>

  ```python theme={null}
  import mech_dpf
  import Ans.DataProcessing as dpf

  op = dpf.operators.utility.merge_any() # operator instantiation
  op.inputs.any.Connect(my_any)
  my_any = op.outputs.any.GetData()
  ```
</details>

## Changelog

* Version 0.0.0: Initial release.
