cppreference.com
创建账户
登录
名字空间
页面
讨论
变换
不转换
简体
繁體
大陆简体
香港繁體
澳門繁體
大马简体
新加坡简体
台灣正體
查看
查看
编辑
历史
操作
std::match_results<BidirIt,Alloc>::
begin,
std::match_results<BidirIt,Alloc>::
cbegin
来自cppreference.com
<
cpp
|
regex
|
match results
C++
语言
标准库头文件
自立与有宿主实现
具名要求
语言支持库
概念库
(C++20)
诊断库
工具库
字符串库
容器库
迭代器库
范围库
(C++20)
算法库
数值库
本地化库
输入/输出库
文件系统库
(C++17)
正则表达式库
(C++11)
原子操作库
(C++11)
线程支持库
(C++11)
技术规范
[编辑]
正则表达式库
类
basic_regex
(C++11)
sub_match
(C++11)
match_results
(C++11)
算法
regex_match
(C++11)
regex_search
(C++11)
regex_replace
(C++11)
迭代器
regex_iterator
(C++11)
regex_token_iterator
(C++11)
异常
regex_error
(C++11)
特性
regex_traits
(C++11)
常量
syntax_option_type
(C++11)
match_flag_type
(C++11)
error_type
(C++11)
正则表达式文法
Modified ECMAScript-262
(C++11)
[编辑]
std::match_results
成员函数
match_results::match_results
match_results::~match_results
match_results::operator=
match_results::get_allocator
状态
match_results::ready
成员访问
match_results::size
match_results::max_size
match_results::empty
match_results::length
match_results::position
match_results::str
match_results::operator[]
match_results::prefix
match_results::suffix
迭代器
match_results::begin
match_results::cbegin
match_results::end
match_results::cend
格式
match_results::format
修改器
match_results::swap
非成员函数
operator==
operator!=
(C++20 前)
swap
(std::match_results)
[编辑]
iterator begin
(
)
noexcept
;
(C++11 起)
const_iterator begin
(
)
const
noexcept
;
(C++11 起)
const_iterator cbegin
(
)
const
noexcept
;
(C++11 起)
返回指向子匹配列表开始的迭代器。若匹配成功,则迭代器将指向整个匹配的表达式。
目录
1
参数
2
返回值
3
复杂度
4
参阅
[
编辑
]
参数
(无)
[
编辑
]
返回值
指向首个子匹配的迭代器。
[
编辑
]
复杂度
常数
[
编辑
]
参阅
end
cend
返回指向子匹配列表末尾的迭代器
(公开成员函数)
[编辑]