名稱空間
變體
操作

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

來自 cppreference.com
< 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)[編輯]