Skip to content

Commit

Permalink
Add iterator traits for edge iterator
Browse files Browse the repository at this point in the history
  • Loading branch information
mooskagh committed Jan 31, 2025
1 parent 58fd9db commit 40af813
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/search/classic/node.h
Original file line number Diff line number Diff line change
Expand Up @@ -439,6 +439,11 @@ class Edge_Iterator : public EdgeAndNode {
public:
using Ptr = std::conditional_t<is_const, const std::unique_ptr<Node>*,
std::unique_ptr<Node>*>;
using value_type = Edge_Iterator;
using iterator_category = std::forward_iterator_tag;
using difference_type = std::ptrdiff_t;
using pointer = Edge_Iterator*;
using reference = Edge_Iterator&;

// Creates "end()" iterator.
Edge_Iterator() {}
Expand Down

0 comments on commit 40af813

Please sign in to comment.