Namespaces
Variants

operator== (std::extents)

From cppreference.net
template < class OtherIndexType, std:: size_t ... OtherExtents >

friend constexpr bool operator == (

const extents & lhs, const extents < OtherIndexType, OtherExtents... > & rhs ) noexcept ;
(C++23 起)

比较两个 extents 。当 lhs. rank ( ) 等于 rhs. rank ( ) ,且对于 rhs 的每个维度索引 r 都有 lhs. extent ( r ) 等于 rhs. extent ( r ) 时返回 true ;否则返回 false

参数

lhs, rhs - 待比较取值的维度范围

返回值

lhs rhs 所表示的范围相等时返回 true ,否则返回 false

示例