名前空間
変種
操作

operator==(std::extents)

From cppreference.com
< cpp‎ | container‎ | mdspan‎ | extents
 
 
 
 
 
template< class OtherIndexType, std::size_t... OtherExtents >

friend constexpr bool operator==(

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

2つのextentsを比較します。lhsのランクがrhsのランクに等しく、かつ、rhsのすべてのランクインデックスrについてlhs.extent(r)rhs.extent(r)に等しい場合にtrueを返します。それ以外の場合はfalseを返します。

[編集] パラメータ

lhs, rhs - 比較するextentsの値

[編集] 戻り値

lhsrhsが表すextentsが等しい場合はtrue、それ以外の場合はfalse

[編集]

English 日本語 中文(简体) 中文(繁體)