---
title: operator <
description: "判断一个SVector中的元素是否比另一个SVector小。"
url: https://www.hiascend.com/document/detail/zh/canncommercial/latest/API/ascendtb/ascendtb_01_0033.html
sourcePath: /source/zh/canncommercial/900/API/ascendtb/ascendtb_01_0033.html
indexId: 49cde77b0f6d39fdb98bd0654a78ceeaa087bcfdecca1b6f930f4611eee2dde564
---
# operator <

#### 功能说明

判断一个SVector中的元素是否比另一个SVector小。


#### 定义

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


#### 参数列表

| 参数名 | 输入/输出 | 说明 |
| --- | --- | --- |
| other | 输入 | 判断一个容器中的元素是否比另一个容器小。 |


#### 返回值说明

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