Skip to content

Commit

Permalink
[Ref] mpt/base/span.hpp: Remove operator== and operator!=. They are n…
Browse files Browse the repository at this point in the history
…ot in std::span.

git-svn-id: https://source.openmpt.org/svn/openmpt/trunk/OpenMPT@22427 56274372-70c3-4bfc-bfc3-4c3a0b034d27
  • Loading branch information
manxorist committed Dec 1, 2024
1 parent 49a1a42 commit 348e619
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/mpt/base/span.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -122,14 +122,6 @@ class span {
return m_data[index];
}

bool operator==(const span & other) const noexcept {
return size() == other.size() && (m_data == other.m_data || std::equal(begin(), end(), other.begin()));
}

bool operator!=(const span & other) const noexcept {
return !(*this == other);
}

pointer data() const noexcept {
return m_data;
}
Expand Down

0 comments on commit 348e619

Please sign in to comment.