diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2022-11-02 07:11:09 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2022-11-02 07:11:09 +0100 |
commit | 0d9e26aba2d2e9728ec7fc99564e4270de84e31a (patch) | |
tree | 513d2694d9acfb976e758e3dd8225b312082c575 /src | |
parent | d7c63cc5cc224df11b95bfd7d36b16f803575bdb (diff) |
add iterator_traits
Diffstat (limited to 'src')
-rw-r--r-- | src/tile-iterator.hpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/tile-iterator.hpp b/src/tile-iterator.hpp index dcec01ab..6403b53a 100644 --- a/src/tile-iterator.hpp +++ b/src/tile-iterator.hpp @@ -41,6 +41,12 @@ public: tile_iterator operator++(int) noexcept; tile_iterator_tuple operator->() noexcept; tile_iterator_tuple operator*() noexcept; + + using difference_type = std::ptrdiff_t; + using value_type = tile_iterator_tuple; + using pointer = value_type; + using reference = value_type; + using iterator_category = std::input_iterator_tag; }; class tile_const_iterator final { @@ -60,6 +66,12 @@ public: tile_const_iterator operator++(int) noexcept; tile_const_iterator_tuple operator->() noexcept; tile_const_iterator_tuple operator*() noexcept; + + using difference_type = std::ptrdiff_t; + using value_type = tile_const_iterator_tuple; + using pointer = value_type; + using reference = value_type; + using iterator_category = std::input_iterator_tag; }; } // namespace floormat |