Namespaces
Variants
Actions

operator==(std::layout_left::mapping)

From cppreference.com
< cpp‎ | container‎ | mdspan‎ | layout left‎ | mapping
 
C++
 
Containers library
 
std::mdspan
 
std::layout_left::mapping
template< class OtherExtents >

friend constexpr bool operator==( const mapping& lhs,

                                  const mapping<OtherExtents>& rhs ) noexcept;
(since C++23)

Compares two layout mappings of the same layout type based on their underlying extents.

Layout mappings lhs and rhs compare equal if both lhs.extents() and rhs.extents() are equal.

This overload participates in overload resolution only if extents_type::rank() == OtherExtents::rank() is true.

Contents

[edit] Parameters

lhs, rhs - layout mappings whose extents to compare

[edit] Return value

true if lhs.extents() == rhs.extents() is true, false otherwise

[edit] Example

[edit] See also

compares this layout mapping of layout_right with other mapping
(function template) [edit]
compares this layout mapping of layout_stride with other mapping
(function template) [edit]
compare underlying extents in each dimension of two extents
(function) [edit]

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