---
title: operator !=
description: "判断两个SVector的元素是否存在不同。"
url: https://www.hiascend.com/document/detail/zh/canncommercial/latest/API/ascendtb/ascendtb_01_0032.html
sourcePath: /source/zh/canncommercial/900/API/ascendtb/ascendtb_01_0032.html
indexId: 115ce9c77df46f2a2e36b685dcec315864d2f32d0ece3232e01f2fc2f509286764
---
# operator !=

#### 功能说明

判断两个SVector的元素是否存在不同。


#### 定义

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


#### 参数列表

| 参数名 | 输入/输出 | 说明 |
| --- | --- | --- |
| other | 输入 | 判断两个SVector中的元素是否存在不同。 |


#### 返回值说明

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