std::forward_list::before_begin
iterator before_begin(); | | (since C++11) |
|---|---|---|
const_iterator before_begin() const; | | (since C++11) |
const_iterator cbefore_begin() const; | | (since C++11) |
将迭代器返回到容器的第一个元素之前的元素。此元素充当占位符,试图访问它将导致未定义的行为。唯一的用例是函数。insert_after(),,,emplace_after(),,,erase_after(),,,splice_after()增量运算符:递增前开始迭代器给出的迭代器与begin()/cbegin()...
参数
%280%29
返回值
Iterator到第一个元素之前的元素。
例外
noexcept规格:
noexcept
复杂性
常量。
另见
begin cbegin | returns an iterator to the beginning (public member function) |
|---|---|
end cend | returns an iterator to the end (public member function) |
© cppreference.com在CreativeCommonsAttribution下授权-ShareAlike未移植许可v3.0。
本文档系腾讯云开发者社区成员共同维护,如有问题请联系 cloudcommunity@tencent.com

