---
title: size
description: "获取SVector的大小。"
url: https://www.hiascend.com/document/detail/zh/canncommercial/latest/API/ascendtb/ascendtb_01_0025.html
sourcePath: /source/zh/canncommercial/900/API/ascendtb/ascendtb_01_0025.html
indexId: 0e8254e3708227dc0337d737283b1fbb79997fb91d6e1b5565fbe3974dde4a1664
---
# size

#### 功能说明

获取SVector的大小。


#### 定义

```
std::size_t size() const noexcept
```


#### 返回值说明

| 类型 | 输入/输出 | 说明 |
| --- | --- | --- |
| size | 输出 | 获取容器的大小。 |
