---
title: operator==
description: "判断本补维规则对象与另一个对象是否一致。"
url: https://www.hiascend.com/document/detail/zh/canncommercial/latest/maintenref/basicdataapi/atlasopapi_07_00063.html
sourcePath: /source/zh/canncommercial/900/maintenref/basicdataapi/atlasopapi_07_00063.html
indexId: 9ca198b0732923fa5bab0904c5a17633ecc76004fdacedadada8fe1c8ec945d078
---
# operator==

#### 函数功能

判断本补维规则对象与另一个对象是否一致。


#### 函数原型

```
bool operator==(const ExpandDimsType &other) const
```


#### 参数说明

| 参数 | 输入/输出 | 说明 |
| --- | --- | --- |
| other | 输入 | 另一个补维规则对象。 |


#### 返回值说明

true表示一致，false表示不一致。


#### 约束说明

无。


#### 调用示例

```
ExpandDimsType type1("1001");
ExpandDimsType type2("1001");
bool is_same_type = type1 == type2; // true
```
