Namespaces
Variants

std::ranges::elements_view<V,N>::size

来自 zh.cppreference.net
 
 
范围库
范围适配器
 
 
constexpr auto size() requires ranges::sized_range<V>;
(自 C++20 起)
constexpr auto size() const requires ranges::sized_range<const V>;
(自 C++20 起)

返回元素的数量,即 ranges::size(base_),其中 base_ 是底层视图。

参数

(无)

返回值

元素数量。

示例

参见

返回等于范围大小的整数值
(定制点对象)
返回等于范围大小的有符号整数值
(定制点对象)