operator==(std::extents)
template< class OtherIndexType, std::size_t... OtherExtents >
friend constexpr bool operator==(
const extents& lhs, const extents<OtherIndexType, OtherExtents...>& rhs ) noexcept;
| (с C++23) |
Сравнивает два extents. Возвращает true, если lhs.rank() равно rhs.rank() и lhs.extent(r) равно rhs.extent(r) для каждого индекса ранга r в rhs; в противном случае возвращает false.
Параметры
| lhs, rhs | - | размеры, значения которых нужно сравнить |
Возвращаемое значение
true, если размеры, представленные lhs и rhs, равны, false в противном случае
Пример
© cppreference.com
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.
https://en.cppreference.com/w/cpp/container/mdspan/extents/operator%3D%3D