PairIsEqualComparator Struct Reference
Inheritance diagram for PairIsEqualComparator:
Collaboration diagram for PairIsEqualComparator:

Public Member Functions

 PairIsEqualComparator (const std::pair< int32, int32 > pair)
 
bool operator() (std::pair< int32, int32 > const &arg)
 

Public Attributes

std::pair< int32, int32pair_
 

Detailed Description

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

Constructor & Destructor Documentation

◆ PairIsEqualComparator()

PairIsEqualComparator ( const std::pair< int32, int32 pair)
inlineexplicit

Definition at line 39 of file nnet-compile-utils-test.cc.

39  :
40  pair_(pair) {}

Member Function Documentation

◆ operator()()

bool operator() ( std::pair< int32, int32 > const &  arg)
inline

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

42  {
43  if (pair_.first == arg.first)
44  return pair_.second == arg.second;
45  return false;
46  }

Member Data Documentation

◆ pair_

std::pair<int32, int32> pair_

Definition at line 47 of file nnet-compile-utils-test.cc.


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