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

#### 功能说明

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


#### 定义

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


#### 参数列表

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


#### 返回值说明

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