Aleph-w 7.10.0
A C++ Library for Data Structures and Algorithms
Loading...
Searching...
No Matches
Aleph::const_graph_view_detail Namespace Reference

Functions

template<class T >
constexpr T * as_graph_item (const T *p) noexcept
 Hands a node or an arc read through a view back to the graph.
 

Function Documentation

◆ as_graph_item()

template<class T >
constexpr T * Aleph::const_graph_view_detail::as_graph_item ( const T *  p)
constexprnoexcept

Hands a node or an arc read through a view back to the graph.

The members of the graph classes that only read still take Node * and Arc *. This is the single place where the view and its iterators remove the const that they add; nothing reached through the result is written.

Parameters
[in]pa node or an arc of the graph.
Returns
p, as the graph expects it.

Definition at line 156 of file tpl_const_graph_view.H.

Referenced by Aleph::Const_Graph_View< GT >::as_graph_item().