API Reference Document
std::sub_match<BidirIt>::
length
<
cpp
|
regex
|
sub match
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::sub_match
成员函数
sub_match::sub_match
sub_match::length
sub_match::str
sub_match::operator string_type
sub_match::compare
非成员函数
operator==
operator!=
operator<<
operator<=
operator>
operator>=
operator<=>
(C++20 前)
(C++20 前)
(C++20 前)
(C++20 前)
(C++20 前)
(C++20)
operator<<
difference_type length
(
)
const
;
参数
(无)
返回值
返回匹配中的字符数,即若匹配合法则为
std::
distance
(
first, second
)
,否则为 0 。
复杂度
常数