std::ranges::subrange<I,S,K>::
empty
来自cppreference.com
<
cpp
|
ranges
|
subrange
C++
编译器支持
自立实现与有宿主实现
语言
标准库
标准库标头
具名要求
功能特性测试宏
(C++20)
语言支持库
概念库
(C++20)
元编程库
(C++11)
诊断库
通用工具库
字符串库
容器库
迭代器库
范围库
(C++20)
算法库
数值库
本地化库
输入/输出库
文件系统库
(C++17)
正则表达式库
(C++11)
并发支持库
(C++11)
技术规范
符号索引
外部库
范围库
范围访问
begin
cbegin
end
cend
rbegin
crbegin
rend
crend
size
ssize
data
cdata
empty
范围转换
std::from_range_t
std::from_range
(C++23)
(C++23)
to
(C++23)
悬垂迭代器处理
dangling
borrowed_iterator_t
borrowed_subrange_t
范围原语
range_size_t
range_difference_t
range_value_t
elements_of
(C++23)
iterator_t
const_iterator_t
sentinel_t
const_sentinel_t
(C++23)
(C++23)
range_reference_t
range_const_reference_t
range_rvalue_reference_t
range_common_reference_t
(C++23)
范围概念
range
borrowed_range
sized_range
common_range
view
viewable_range
input_range
output_range
forward_range
bidirectional_range
random_access_range
contiguous_range
constant_range
(C++23)
视图
view_interface
subrange
范围工厂
empty_view
views::empty
single_view
views::single
basic_istream_view
views::istream
iota_view
views::iota
repeat_view
views::repeat
(C++23)
(C++23)
范围适配器
views::all_t
views::all
ref_view
owning_view
as_rvalue_view
views::as_rvalue
(C++23)
(C++23)
filter_view
views::filter
transform_view
views::transform
take_view
views::take
take_while_view
views::take_while
concat_view
views::concat
(C++26)
(C++26)
drop_view
views::drop
drop_while_view
views::drop_while
join_view
views::join
join_with_view
views::join_with
(C++23)
(C++23)
lazy_split_view
views::lazy_split
split_view
views::split
views::counted
common_view
views::common
reverse_view
views::reverse
as_const_view
views::as_const
(C++23)
(C++23)
elements_view
views::elements
keys_view
views::keys
values_view
views::values
enumerate_view
views::enumerate
(C++23)
(C++23)
zip_view
views::zip
(C++23)
(C++23)
zip_transform_view
views::zip_transform
(C++23)
(C++23)
adjacent_view
views::adjacent
(C++23)
(C++23)
views::pairwise
(C++23)
adjacent_transform_view
views::adjacent_transform
(C++23)
(C++23)
views::pairwise_transform
(C++23)
chunk_view
views::chunk
(C++23)
(C++23)
slide_view
views::slide
(C++23)
(C++23)
chunk_by_view
views::chunk_by
(C++23)
(C++23)
stride_view
views::stride
(C++23)
(C++23)
cartesian_product_view
views::cartesian_product
(C++23)
(C++23)
范围生成器
std::generator
(C++23)
范围适配器闭包对象
range_adaptor_closure
(C++23)
范围适配器对象
辅助项
copyable-box
movable-box
(C++23 前)
(C++23)
simple-view
non-propagating-cache
std::ranges::subrange
成员函数
subrange::subrange
subrange::operator PairLike
观察器
subrange::begin
subrange::end
subrange::empty
subrange::size
迭代器操作
subrange::advance
subrange::next
subrange::prev
推导指引
非成员函数
get
(std::ranges::subrange)
辅助类型
subrange_kind
tuple_size
<std::ranges::subrange>
tuple_element
<std::ranges::subrange>
constexpr
bool
empty
(
)
const
;
(C++20 起)
检查
subrange
是否为空。
返回值
begin_
==
end_
。
示例
本节未完成
原因:暂无示例
参阅
size
获得
subrange
的大小
(公开成员函数)
empty
(C++17)
检查容器是否为空
(函数模板)
ranges::empty
(C++20)
检查范围是否为空
(定制点对象)