std::forward_list<T,Allocator>:: before_begin, cbefore_begin
From cppreference.net
<
cpp
|
container
|
forward list
C++
Containers library
|
(C++17)
|
||||
| Sequence | ||||
|
(C++11)
|
||||
|
(C++26)
|
||||
|
(C++26)
|
||||
|
(C++11)
|
||||
| Associative | ||||
| Unordered associative | ||||
|
(C++11)
|
||||
|
(C++11)
|
||||
|
(C++11)
|
||||
|
(C++11)
|
||||
| Adaptors | ||||
|
(C++23)
|
||||
|
(C++23)
|
||||
|
(C++23)
|
||||
|
(C++23)
|
||||
| Views | ||||
|
(C++20)
|
||||
|
(C++23)
|
||||
| Tables | ||||
| Iterator invalidation | ||||
| Member function table | ||||
| Non-member function table |
std::forward_list
| Member functions | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Non-member functions | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Deduction guides (C++17) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
iterator before_begin
(
)
noexcept
;
|
(1) |
(C++11부터)
(C++26부터 constexpr) |
|
const_iterator before_begin
(
)
const
noexcept
;
|
(2) |
(C++11부터)
(C++26부터 constexpr) |
|
const_iterator cbefore_begin
(
)
const
noexcept
;
|
(3) |
(C++11부터)
(C++26부터 constexpr) |
역참조 불가능한 반복자를 반환하며, before-begin 반복자를 증가시키면 begin() / cbegin() 에서 얻은 반복자와 정확히 동일한 반복자를 얻게 됩니다.
유일한 사용 사례는 함수 insert_after() , emplace_after() , erase_after() , splice_after() 그리고 증가 연산자에서입니다.
목차 |
반환값
begin iterator 바로 앞 위치를 나타내는 반복자입니다.
복잡도
상수.
예제
|
이 섹션은 불완전합니다
이유: 예제 없음 |
참고 항목
|
시작 부분에 대한 반복자를 반환합니다
(public member function) |
|
|
끝 부분에 대한 반복자를 반환합니다
(public member function) |