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

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