CMS 3D CMS Logo

Public Member Functions | Public Attributes

PairSortByFirst< T1, T2, Comp > Struct Template Reference

List of all members.

Public Member Functions

bool operator() (const std::pair< T1, T2 > &lhs, const std::pair< T1, T2 > &rhs)
bool operator() (const T1 &lhs, const T1 &rhs)
bool operator() (const std::pair< T1, T2 > &lhs, const T1 &rhs)
bool operator() (const T1 &lhs, const std::pair< T1, T2 > &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

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.

{return comp(lhs.first,rhs.first);}
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.

{return comp(lhs,rhs);}
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.

{return comp(lhs.first,rhs);}
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.

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

Member Data Documentation

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()().