---
title: empty
description: "判断SVector是否为空。"
url: https://www.hiascend.com/document/detail/zh/canncommercial/latest/API/ascendtb/ascendtb_01_0027.html
sourcePath: /source/zh/canncommercial/900/API/ascendtb/ascendtb_01_0027.html
indexId: 4ae1b718f64f0e605ad6f66ee0061226a00372a4e21886edecc23699784c8fa064
---
# empty

#### 功能说明

判断SVector是否为空。


#### 定义

```
bool empty() const noexcept
```


#### 返回值说明

| 类型 | 输入/输出 | 说明 |
| --- | --- | --- |
| bool | 输出 | 返回“true”时SVector为空。 返回“false”则SVector非空。 |
