CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Public Attributes
PairSortBy1st< T1, T2, Comp > Struct Template Reference
Inheritance diagram for PairSortBy1st< T1, T2, Comp >:

Public Member Functions

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

Public Attributes

Comp comp
 

Detailed Description

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

Definition at line 8 of file LUT.cc.

Constructor & Destructor Documentation

template<class T1 , class T2 , typename Comp = std::less<T1>>
PairSortBy1st< T1, T2, Comp >::PairSortBy1st ( const Comp &  iComp)
inline

Definition at line 10 of file LUT.cc.

10 :comp(iComp){}
Comp comp
Definition: LUT.cc:9
template<class T1 , class T2 , typename Comp = std::less<T1>>
PairSortBy1st< T1, T2, Comp >::PairSortBy1st ( )
inline

Definition at line 11 of file LUT.cc.

11 {}

Member Function Documentation

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

Definition at line 12 of file LUT.cc.

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

12 {return comp(lhs.first,rhs.first);}
Comp comp
Definition: LUT.cc:9
template<class T1 , class T2 , typename Comp = std::less<T1>>
bool PairSortBy1st< T1, T2, Comp >::operator() ( const T1 &  lhs,
const std::pair< T1, T2 > &  rhs 
) const
inline

Definition at line 13 of file LUT.cc.

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

13 {return comp(lhs,rhs.first);}
Comp comp
Definition: LUT.cc:9
template<class T1 , class T2 , typename Comp = std::less<T1>>
bool PairSortBy1st< T1, T2, Comp >::operator() ( const std::pair< T1, T2 > &  lhs,
const T1 &  rhs 
) const
inline

Definition at line 14 of file LUT.cc.

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

14 {return comp(lhs.first,rhs);}
Comp comp
Definition: LUT.cc:9
template<class T1 , class T2 , typename Comp = std::less<T1>>
bool PairSortBy1st< T1, T2, Comp >::operator() ( const T1 &  lhs,
const T1 &  rhs 
) const
inline

Definition at line 15 of file LUT.cc.

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

15 {return comp(lhs,rhs);}
Comp comp
Definition: LUT.cc:9

Member Data Documentation

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

Definition at line 9 of file LUT.cc.

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