Namespaces
Variants

std::forward_list<T,Allocator>:: before_begin, cbefore_begin

From cppreference.net
iterator before_begin ( ) noexcept ;
(1) (C++11以降)
(constexprはC++26以降)
const_iterator before_begin ( ) const noexcept ;
(2) (C++11以降)
(constexprはC++26以降)
const_iterator cbefore_begin ( ) const noexcept ;
(3) (C++11以降)
(constexprはC++26以降)

逆参照不可能なイテレータを返す。before-beginイテレータをインクリメントすると、 begin() / cbegin() から取得したイテレータと完全に同じイテレータが得られる。

唯一の使用例は関数 insert_after() emplace_after() erase_after() splice_after() およびインクリメント演算子内にあります。

目次

戻り値

開始イテレータの直前に位置するイテレータを表します。

計算量

定数。

関連項目

先頭を指すイテレータを返す
(公開メンバ関数)
末尾を指すイテレータを返す
(公開メンバ関数)