Skip to content

Commit

Permalink
afs
Browse files Browse the repository at this point in the history
  • Loading branch information
nhatdongdang committed Sep 9, 2024
1 parent 696d8ed commit a7b9277
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion 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 @@ -252,10 +256,12 @@ struct HeightMap {
/**
* @brief An iterator for the HeightMap structure.
*
* This iterator allows for range-based for loops and standard iterator
* This itrator allows for range-based for loops and standard iterator
* 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

0 comments on commit a7b9277

Please sign in to comment.