CompareFirstMemberOfPair< A, B > Struct Template Reference

Comparator object for pairs that compares only the first pair. More...

#include <stl-utils.h>

Public Member Functions

bool operator() (const std::pair< A, B > &p1, const std::pair< A, B > &p2)
 

Detailed Description

template<class A, class B>
struct kaldi::CompareFirstMemberOfPair< A, B >

Comparator object for pairs that compares only the first pair.

Definition at line 274 of file stl-utils.h.

Member Function Documentation

◆ operator()()

bool operator() ( const std::pair< A, B > &  p1,
const std::pair< A, B > &  p2 
)
inline

Definition at line 275 of file stl-utils.h.

276  {
277  return p1.first < p2.first;
278  }

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