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

# empty

#### 功能说明

判断SVector是否为空。


#### 定义

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


#### 返回值说明

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