---
title: push_back
description: "插入元素到指定SVector。"
url: https://www.hiascend.com/document/detail/zh/canncommercial/latest/API/ascendtb/ascendtb_01_0020.html
sourcePath: /source/zh/canncommercial/900/API/ascendtb/ascendtb_01_0020.html
indexId: 05238df20873f3628625c40b308ce996af371cf0f077b8d27ec4801ea4add56d64
---
# push_back

#### 功能说明

插入元素到指定SVector。


#### 定义

```
void push_back(const T &val) noexcept((!CHECK_BOUND) && std::is_nothrow_assignable<T, const T &>::value)
```


#### 参数列表

| 参数名 | 输入/输出 | 说明 |
| --- | --- | --- |
| val | 输入 | 添加在SVector内元素的值。 |


#### 约束说明

调用函数时，待添加SVector内元素必须小于MAX_SVECTOR_SIZE，否则接口将会抛出长度溢出异常。
