Skip to content

Search topics & cppreference

Search all study topics, concept maps, and 6,587 C++ and C reference pages.

operator==(std::layout_right::mapping)

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

NotebookLM
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.

Parameters

lhs, rhs - layout mappings whose extents to compare

Return value

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

Example

This section is incomplete
Reason: no example

See also

compares this layout mapping of layout_left with other mapping
(function template)
compares this layout mapping of layout_stride with other mapping
(function template)
compare underlying extents in each dimension of two extents
(function)

Content from this page on cppreference.com, licensed under CC-BY-SA 3.0 and GFDL. Modified: restyled, site navigation removed, code windows added. Offline snapshot of 9 February 2025.