Namespaces
Variants
Actions

operator==(std::extents)

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

friend constexpr bool operator==(

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

Compares two extents. Returns true if lhs.rank() equals rhs.rank() and lhs.extent(r) equals rhs.extent(r) for every rank index r of rhs; otherwise returns false.

[edit] Parameters

lhs, rhs - extents whose values to compare

[edit] Return value

true if the extents represented by lhs and rhs are equal, false otherwise

[edit] Example

Follow Lee on X/Twitter - Father, Husband, Serial builder creating AI, crypto, games & web tools. We are friends :) AI Will Come To Life!

Check out: eBank.nz (Art Generator) | Netwrck.com (AI Tools) | Text-Generator.io (AI API) | BitBank.nz (Crypto AI) | ReadingTime (Kids Reading) | RewordGame | BigMultiplayerChess | WebFiddle | How.nz | Helix AI Assistant