std::forward_list::insert_after
来自cppreference.com
< cpp | container | forward list
|
|
该页由英文版wiki使用Google Translate机器翻译而来。
该翻译可能存在错误或用词不当。鼠标停留在文本上可以看到原版本。你可以帮助我们修正错误或改进翻译。参见说明请点击这里. |
| iterator insert_after( const_iterator pos, const T& value ); |
(1) | (C++11 起) |
| iterator insert_after( const_iterator pos, T&& value ); |
(2) | (C++11 起) |
| iterator insert_after( const_iterator pos, size_type count, const T& value ); |
(3) | (C++11 起) |
| template< class InputIt > iterator insert_after( const_iterator pos, InputIt first, InputIt last ); |
(4) | (C++11 起) |
| iterator insert_after( const_iterator pos, std::initializer_list<T> ilist ); |
(5) | (C++11 起) |
在容器中的指定位置插入元素后.
原文:
Inserts elements after the specified position in the container.
1-2)
插入
value后,pos所指向的元素原文:
inserts
value after the element pointed to by pos3)
插入
count副本的value所指向的元素之后的pos原文:
inserts
count copies of the value after the element pointed to by pos4)
范围
[first, last)的元素之后插入元素所指向的pos原文:
inserts elements from range
[first, last) after the element pointed to by pos5)
从初始化列表中插入元素
ilist.原文:
inserts elements from initializer list
ilist.Information on iterator invalidation is copied from 在这里
目录 |
[编辑] 参数
| pos | - | 元素之后的内容将被插入
原文: element after which the content will be inserted |
| value | - | 元素的值插入
|
| first, last | - | 的范围内的元素插入
|
| ilist | - | 初始化列表中插入的值
原文: initializer list to insert the values from |
| 类型要求 | ||
-InputIt 必须满足 InputIterator 的要求。
| ||
[编辑] 返回值
迭代器插入的元素.
[编辑] 复杂度
| 本章尚未完成 |
[编辑] 另请参阅
| 后构造就地中元素的元素 原文: constructs elements in-place after an element (公共成员函数) | |
| 在容器的开始处插入新元素 (公共成员函数) | |