命名空间
变体
操作

std::ranges::subrange<I,S,K>::empty

来自 cppreference.cn
< cpp‎ | ranges‎ | subrange
 
 
范围库 (Ranges library)
范围适配器 (Range adaptors)
 
 
constexpr bool empty() const;
(C++20 起)

检查 subrange 是否为空。

[编辑] 返回值

begin_ == end_.

[编辑] 示例

[编辑] 参阅

获取 subrange 的大小
(public member function) [编辑]
(C++17)
检查容器是否为空
(function template) [编辑]
检查范围是否为空
(customization point object)[编辑]