---
title: operator ==
description: 判断两个SVector中的元素是否全部相同。
url: "https://www.hiascend.com/document/detail/zh/canncommercial/900/API/ascendtb/ascendtb_01_0031.html"
---

# operator ==

#### 功能说明

判断两个SVector中的元素是否全部相同。


#### 定义

```
bool operator == (const SVector<T> &other) const
```


#### 参数列表

| 参数名 | 输入/输出 | 说明 |
| --- | --- | --- |
| other | 输入 | 判断成员与“other”是否相同。 |


#### 返回值说明

| 类型 | 输入/输出 | 说明 |
| --- | --- | --- |
| bool | 输出 | 返回“true”时相同。 返回“false”时不相同。 |
