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

Concept for graph arc iterators. More...

#include <graph-dry.H>

Concept definition

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

Detailed Description

Concept for graph arc iterators.

An arc iterator must satisfy BasicGraphIterator and return a pointer to the specified Arc type from get_curr().

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

Template Parameters
ItThe iterator type to check
ArcThe expected arc type (not pointer)
See also
BasicGraphIterator, GraphNodeIterator, NodeArcIterator

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