Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
RoutingKit::detail::CompareByKey< K > Struct Template Reference

#include <sort.h>

Public Member Functions

 CompareByKey (unsigned n, const K &k)
 
template<class T >
bool operator() (const T &l, const T &r) const
 

Data Fields

const Kget_key
 
unsigned key_count
 

Detailed Description

template<class K>
struct RoutingKit::detail::CompareByKey< K >

Definition at line 148 of file sort.h.

Constructor & Destructor Documentation

◆ CompareByKey()

template<class K >
RoutingKit::detail::CompareByKey< K >::CompareByKey ( unsigned  n,
const K k 
)
inlineexplicit

Definition at line 149 of file sort.h.

References RoutingKit::detail::CompareByKey< K >::key_count.

Member Function Documentation

◆ operator()()

template<class K >
template<class T >
bool RoutingKit::detail::CompareByKey< K >::operator() ( const T &  l,
const T &  r 
) const
inline

Field Documentation

◆ get_key

template<class K >
const K& RoutingKit::detail::CompareByKey< K >::get_key

Definition at line 169 of file sort.h.

Referenced by RoutingKit::detail::CompareByKey< K >::operator()().

◆ key_count


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