summaryrefslogtreecommitdiffhomepage
path: root/src/tile-iterator.hpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2022-10-08 14:11:20 +0200
committerStanislaw Halik <sthalik@misaki.pl>2022-10-08 14:11:20 +0200
commit5c9eb51cc80a7bfc6ccf1e8cc6534a1e85efb1fe (patch)
treeca5dc8050d472e4d1085a23dd92fbd12dc80d530 /src/tile-iterator.hpp
parent4d39911eea55caac4016a1f7a92fbcb202797d42 (diff)
a
Diffstat (limited to 'src/tile-iterator.hpp')
-rw-r--r--src/tile-iterator.hpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/tile-iterator.hpp b/src/tile-iterator.hpp
index 4be601c2..1bb8b7e6 100644
--- a/src/tile-iterator.hpp
+++ b/src/tile-iterator.hpp
@@ -30,15 +30,12 @@ class basic_tile_iterator final {
std::size_t pos = 0;
public:
- using value_type = std::tuple<T&, std::size_t, local_coords>;
-
explicit basic_tile_iterator(T* ptr, std::size_t pos) noexcept : ptr(ptr), pos(pos) {}
~basic_tile_iterator() noexcept = default;
basic_tile_iterator<T>& operator=(const basic_tile_iterator<T>&) = default;
basic_tile_iterator<T>& operator++() { pos++; return *this; }
basic_tile_iterator<T> operator++(int) { auto tmp = *this; operator++(); return tmp; }
- basic_tile_iterator<T>* operator->() { return this; }
basic_tile_iterator<T>& operator*() { return *this; }
auto operator<=>(const basic_tile_iterator<T>&) const noexcept = default;
void swap(basic_tile_iterator<T>& other);