Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions include/mcpp/util.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#pragma once

#include "block.h"
#include <cstddef>
#include <iterator>
#include <ostream>
#include <vector>

Expand Down Expand Up @@ -101,6 +103,8 @@ struct Chunk {
* access to the elements stored in the chunk.
*/
struct Iterator {
using iterator_category = std::forward_iterator_tag;
using difference_type = std::ptrdiff_t;
using value_type = BlockType;
using pointer = BlockType*;
using reference = BlockType&;
Expand Down Expand Up @@ -256,6 +260,8 @@ struct HeightMap {
* operations over the height data stored within a HeightMap.
*/
struct Iterator {
using iterator_category = std::forward_iterator_tag;
using difference_type = std::ptrdiff_t;
using value_type = int;
using pointer = int*;
using reference = int&;
Expand Down
Loading