C++ 参考手册
- C++11
 - C++14
 - C++17
 - C++20
 - C++ 编译器支持情况表
 - 独立与宿主实现
 - C++ 语言
 - C++ 关键词
 - 预处理器
 - C++ 标准库头文件
 - 具名要求
 - 功能特性测试 (C++20)
 - 工具库
 - 类型支持(基本类型、RTTI、类型特性)
 - 概念库 (C++20)
 - 错误处理
 - 动态内存管理
 - 日期和时间工具
 - 字符串库
 - 容器库
 - std::array
 - std::vector
 - std::map
 - std::unordered_map
 - std::priority_queue
 - std::span
 - std::forward_list
 - std::forward_list<T,Allocator>::forward_list
 - std::forward_list<T,Allocator>::~forward_list
 - std::forward_list<T,Allocator>::operator=
 - std::forward_list<T,Allocator>::unique
 - std::forward_list<T,Allocator>::reverse
 - std::forward_list<T,Allocator>::sort
 - std::forward_list 的推导指引
 - std::forward_list<T,Allocator>::merge
 - std::forward_list<T,Allocator>::splice_after
 - std::forward_list<T,Allocator>::remove, remove_if
 - operator==,!=,<,<=,>,>=,<=>(std::forward_list)
 - std::swap(std::forward_list)
 - std::erase, std::erase_if (std::forward_list)
 - std::forward_list<T,Allocator>::swap
 - std::forward_list<T,Allocator>::erase_after
 - std::forward_list<T,Allocator>::push_front
 - std::forward_list<T,Allocator>::emplace_front
 - std::forward_list<T,Allocator>::pop_front
 - std::forward_list<T,Allocator>::resize
 - std::forward_list<T,Allocator>::empty
 - std::forward_list<T,Allocator>::max_size
 - std::forward_list<T,Allocator>::clear
 - std::forward_list<T,Allocator>::insert_after
 - std::forward_list<T,Allocator>::emplace_after
 - std::forward_list<T,Allocator>::begin, std::forward_list<T,Allocator>::cbegin
 - std::forward_list<T,Allocator>::end, std::forward_list<T,Allocator>::cend
 - std::forward_list<T,Allocator>::assign
 - std::forward_list<T,Allocator>::get_allocator
 - std::forward_list<T,Allocator>::front
 - std::forward_list<T,Allocator>::before_begin, cbefore_begin
 - std::deque
 - std::list
 - std::set
 - std::multiset
 - std::multimap
 - std::unordered_set
 - std::unordered_multiset
 - std::unordered_multimap
 - std::stack
 - std::queue
 - std::vector<bool>
 - 结点把柄 (C++17)
 - 注释
 - 迭代器库
 - 范围库 (C++20)
 - 算法库
 - 数值库
 - 输入/输出库
 - 文件系统库
 - 本地化库
 - 正则表达式库
 - 原子操作库
 - 线程支持库
 - 实验性 C++ 特性
 - 有用的资源
 - 索引
 - std 符号索引
 - 协程支持 (C++20)
 - C++ 关键词
 
位置:首页 > C++ 参考手册 >容器库 >std::forward_list > std::forward_list<T,Allocator>::before_begin, cbefore_begin
std::forward_list<T,Allocator>::before_begin, cbefore_begin
|   iterator before_begin() noexcept;  | 
(C++11 起) | |
|   const_iterator before_begin() const noexcept;  | 
(C++11 起) | |
|   const_iterator cbefore_begin() const noexcept;  | 
(C++11 起) | |
返回指向首元素前一元素的迭代器。此元素表现为占位符,试图访问它会导致未定义行为。仅有的使用情况是在函数 insert_after() 、 emplace_after() 、 erase_after() 、 splice_after() 和迭代器自增中:自增始前迭代器准确地给出与从 begin()/cbegin() 获得者相同的迭代器。
参数
(无)
返回值
指向首元素前一元素的迭代器。
复杂度
常数。
参阅
|    返回指向容器第一个元素的迭代器   (公开成员函数)  | |
|   返回指向容器尾端的迭代器   (公开成员函数)  |