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

# ansys::dpf::Label Struct Reference

`#include <dpf_api_base.h>`

## Public Member Functions

| Type | Name |
| - | - |
| | [Label](#aa16652a3ceeda62dce2af07722a0ec80) (std::string const \&name) |
| | **Label** ([Label](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/structansys_1_1dpf_1_1Label.md) const &)=default |
|  bool | **operator==** ([Label](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/structansys_1_1dpf_1_1Label.md) const &) const |
|  bool | **operator\<** ([Label](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/structansys_1_1dpf_1_1Label.md) const &) const |
|  bool | **operator\<=** ([Label](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/structansys_1_1dpf_1_1Label.md) const &) const |
|  bool | **operator!=** ([Label](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/structansys_1_1dpf_1_1Label.md) const &) const |
| | [operator std::string](#abb523602a3862d6141a3052812225e4b) () const |
| const char \* | [c\_str](#a8683632fa258b763080c99228b4f561c) () const |

## Detailed Description

Container for label.

**See also**

[labels](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/structansys_1_1dpf_1_1labels.md)

[Using collections and labels](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/group__group__12.md)

**Examples**

[DataApis.cpp](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/DataApis_8cpp-example.md).

## Constructor & Destructor Documentation

### Label()

```cpp theme={null}
ansys::dpf::Label::Label(std::string const & name)
```

`explicit`

Create [Label](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/structansys_1_1dpf_1_1Label.md).

**Parameters**

| Direction | Name | Description |
| - | - | - |
| \[in] | name | Name of label. |

## Member Function Documentation

### c\_str()

```cpp theme={null}
const char * ansys::dpf::Label::c_str() const
```

**Returns**

Value of label.

### operator std::string()

```cpp theme={null}
ansys::dpf::Label::operator std::string() const
```

Value of label.
