首页
学习
活动
专区
工具
TVP
发布
精选内容/技术社群/优惠产品,尽在小程序
立即前往

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)

代码语言:txt
复制
 ? cppreference.com

在CreativeCommonsAttribution下授权-ShareAlike未移植许可v3.0。

扫码关注腾讯云开发者

领取腾讯云代金券

http://www.vxiaotou.com