summaryrefslogtreecommitdiffhomepage
path: root/src/tile-iterator.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/tile-iterator.hpp')
-rw-r--r--src/tile-iterator.hpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/tile-iterator.hpp b/src/tile-iterator.hpp
index 2f860380..5d999716 100644
--- a/src/tile-iterator.hpp
+++ b/src/tile-iterator.hpp
@@ -3,7 +3,6 @@
#include "compat/integer-types.hpp"
#include "local-coords.hpp"
#include "tile.hpp"
-#include <compare>
namespace floormat {
@@ -11,21 +10,22 @@ struct tile_iterator_tuple final { // NOLINT(cppcoreguidelines-pro-type-member-i
const tile_iterator_tuple* operator->() const noexcept { return this; }
tile_iterator_tuple* operator->() noexcept { return this; }
- tile_ref tile;
- std::size_t i;
- local_coords pos;
+ tile_ref x;
+ std::size_t k;
+ local_coords pt;
};
class tile_iterator final {
chunk* c;
std::size_t pos;
+ friend bool operator==(const tile_iterator&, const tile_iterator&) noexcept;
+
public:
explicit tile_iterator(chunk& c, std::size_t pos) noexcept;
tile_iterator(const tile_iterator&) noexcept;
tile_iterator& operator=(const tile_iterator&) noexcept;
- std::strong_ordering operator<=>(const tile_iterator&) const noexcept;
void swap(tile_iterator& other) noexcept;
tile_iterator& operator++() noexcept;