All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
FirstElementComparator Struct Reference

Public Member Functions

int first_element (int32 t) const
 
int first_element (std::pair< int32, int32 > t) const
 
template<typename T1 , typename T2 >
bool operator() (T1 const &t1, T2 const &t2) const
 

Detailed Description

Definition at line 31 of file nnet-compile-utils.cc.

Member Function Documentation

int first_element ( int32  t) const
inline

Definition at line 32 of file nnet-compile-utils.cc.

Referenced by FirstElementComparator::operator()().

32  {
33  return t;
34  }
int first_element ( std::pair< int32, int32 >  t) const
inline

Definition at line 36 of file nnet-compile-utils.cc.

36  {
37  return t.first;
38  }
bool operator() ( T1 const &  t1,
T2 const &  t2 
) const
inline

Definition at line 41 of file nnet-compile-utils.cc.

References FirstElementComparator::first_element().

41  {
42  return first_element(t1) < first_element(t2);
43  }

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