std::span<T,Extent>::empty_C++中文网
| [[nodiscard]] constexpr bool empty() const noexcept; |
||
检查 span 是否为空。
返回值
若 span 为空(即 size() == 0 )则为 true ;否则为 false 。
参阅
| 返回序列中的元素数 (公开成员函数) |
std::span<T,Extent>::empty_C++中文网
| [[nodiscard]] constexpr bool empty() const noexcept; |
||
检查 span 是否为空。
若 span 为空(即 size() == 0 )则为 true ;否则为 false 。
| 返回序列中的元素数 (公开成员函数) |