Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
Loading...
Searching...
No Matches
GraphNodeIterator Concept Reference

Concept for graph node iterators. More...

#include <graph-dry.H>

Concept definition

template<typename It, typename Node>
concept GraphNodeIterator = BasicGraphIterator<It> && requires(const It cit)
{
{ cit.get_curr() } -> std::convertible_to<Node*>;
}
Concept for basic graph iterators.
Definition graph-dry.H:152
Concept for graph node iterators.
Definition graph-dry.H:191

Detailed Description

Concept for graph node iterators.

A node iterator must satisfy BasicGraphIterator and return a pointer to the specified Node type from get_curr().

This concept is useful when you need to ensure the iterator yields nodes of a specific type.

Template Parameters
ItThe iterator type to check
NodeThe expected node type (not pointer)
See also
BasicGraphIterator, GraphArcIterator

Definition at line 191 of file graph-dry.H.