All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
FirstElementIsEqualComparator Struct Reference
Inheritance diagram for FirstElementIsEqualComparator:
Collaboration diagram for FirstElementIsEqualComparator:

Public Member Functions

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

Public Attributes

int32 element_
 

Detailed Description

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

Constructor & Destructor Documentation

FirstElementIsEqualComparator ( const int32  element)
inlineexplicit

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

Member Function Documentation

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

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

References FirstElementIsEqualComparator::element_.

54  { return (arg.first == element_); }

Member Data Documentation

int32 element_

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

Referenced by FirstElementIsEqualComparator::operator()().


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