PGROUTING  3.2
Pgr_allpairs< G >::inf_plus< T > Struct Template Reference

Public Member Functions

operator() (const T &a, const T &b) const
 

Detailed Description

template<class G>
template<typename T>
struct Pgr_allpairs< G >::inf_plus< T >

Definition at line 252 of file pgr_allpairs.hpp.

Member Function Documentation

◆ operator()()

template<class G >
template<typename T >
T Pgr_allpairs< G >::inf_plus< T >::operator() ( const T &  a,
const T &  b 
) const
inline

Definition at line 253 of file pgr_allpairs.hpp.

253  {
254  T inf = (std::numeric_limits<T>::max)();
255  if (a == inf || b == inf)
256  return inf;
257  return a + b;
258  }

The documentation for this struct was generated from the following file: