---
title: operator==
description: "判断参数是否相同。"
url: https://www.hiascend.com/document/detail/zh/canncommercial/latest/API/ascendtb/ascendtb_01_0301.html
sourcePath: /source/zh/canncommercial/900/API/ascendtb/ascendtb_01_0301.html
indexId: d3083467a693bf68ffd80ccf0e0fdea1f7396907354f3d47cfab17f435f166f164
---
# operator==

#### 功能说明

判断参数是否相同。


#### 定义

```
#ifndef ATB_COMMONOPPARAM_H
namespace atb {
namespace common {
inline bool operator==(const EventParam &left, const EventParam &right)
{
return left.operatorType == right.operatorType && left.event == right.event;
}
} // namespace common
} // namespace atb
#endif
```
