g2o
Public Member Functions | List of all members
g2o::CmpPairFirst< T1, T2, Pred > Struct Template Reference

Public Member Functions

bool operator() (const std::pair< T1, T2 > &left, const std::pair< T1, T2 > &right)
 

Detailed Description

template<class T1, class T2, class Pred = std::less<T1>>
struct g2o::CmpPairFirst< T1, T2, Pred >

Helper class to sort pair based on first elem

Definition at line 92 of file command_args.cpp.

Member Function Documentation

template<class T1 , class T2 , class Pred = std::less<T1>>
bool g2o::CmpPairFirst< T1, T2, Pred >::operator() ( const std::pair< T1, T2 > &  left,
const std::pair< T1, T2 > &  right 
)
inline

Definition at line 93 of file command_args.cpp.

93  {
94  return Pred()(left.first, right.first);
95  }

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