CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes
PairSortByFirst< T1, T2, Comp > Struct Template Reference

Public Member Functions

bool operator() (const std::pair< T1, T2 > &lhs, const std::pair< T1, T2 > &rhs)
 
bool operator() (const T1 &lhs, const std::pair< T1, T2 > &rhs)
 
bool operator() (const std::pair< T1, T2 > &lhs, const T1 &rhs)
 
bool operator() (const T1 &lhs, const T1 &rhs)
 

Public Attributes

Comp comp
 

Detailed Description

template<class T1, class T2, typename Comp = std::less<T1>>
struct PairSortByFirst< T1, T2, Comp >

Definition at line 16 of file Multi5x5ClusterAlgo.cc.

Member Function Documentation

◆ operator()() [1/4]

template<class T1 , class T2 , typename Comp = std::less<T1>>
bool PairSortByFirst< T1, T2, Comp >::operator() ( const std::pair< T1, T2 > &  lhs,
const std::pair< T1, T2 > &  rhs 
)
inline

Definition at line 18 of file Multi5x5ClusterAlgo.cc.

References PairSortByFirst< T1, T2, Comp >::comp.

18 { return comp(lhs.first, rhs.first); }

◆ operator()() [2/4]

template<class T1 , class T2 , typename Comp = std::less<T1>>
bool PairSortByFirst< T1, T2, Comp >::operator() ( const T1 &  lhs,
const std::pair< T1, T2 > &  rhs 
)
inline

Definition at line 19 of file Multi5x5ClusterAlgo.cc.

References PairSortByFirst< T1, T2, Comp >::comp.

19 { return comp(lhs, rhs.first); }

◆ operator()() [3/4]

template<class T1 , class T2 , typename Comp = std::less<T1>>
bool PairSortByFirst< T1, T2, Comp >::operator() ( const std::pair< T1, T2 > &  lhs,
const T1 &  rhs 
)
inline

Definition at line 20 of file Multi5x5ClusterAlgo.cc.

References PairSortByFirst< T1, T2, Comp >::comp.

20 { return comp(lhs.first, rhs); }

◆ operator()() [4/4]

template<class T1 , class T2 , typename Comp = std::less<T1>>
bool PairSortByFirst< T1, T2, Comp >::operator() ( const T1 &  lhs,
const T1 &  rhs 
)
inline

Definition at line 21 of file Multi5x5ClusterAlgo.cc.

References PairSortByFirst< T1, T2, Comp >::comp.

21 { return comp(lhs, rhs); }

Member Data Documentation

◆ comp

template<class T1 , class T2 , typename Comp = std::less<T1>>
Comp PairSortByFirst< T1, T2, Comp >::comp

Definition at line 17 of file Multi5x5ClusterAlgo.cc.

Referenced by PairSortByFirst< T1, T2, Comp >::operator()().