Back to index

salome-kernel  6.5.0
Public Member Functions | Public Attributes
FindKeyPredicate< std::pair< T1, T2 > > Struct Template Reference

#include <FindKeyPredicate.hxx>

List of all members.

Public Member Functions

 FindKeyPredicate (const T1 &value)
bool operator() (const std::pair< T1, T2 > &v1) const

Public Attributes

T1 _value

Detailed Description

template<typename T1, typename T2>
struct FindKeyPredicate< std::pair< T1, T2 > >

Definition at line 66 of file FindKeyPredicate.hxx.


Constructor & Destructor Documentation

template<typename T1 , typename T2 >
FindKeyPredicate< std::pair< T1, T2 > >::FindKeyPredicate ( const T1 &  value) [inline]

Definition at line 69 of file FindKeyPredicate.hxx.

                                    :_value(value){
    std::cout << "FindKeyPredicate 2-Initializing with value " << _value << std::endl;
  }

Member Function Documentation

template<typename T1 , typename T2 >
bool FindKeyPredicate< std::pair< T1, T2 > >::operator() ( const std::pair< T1, T2 > &  v1) const [inline]

Definition at line 73 of file FindKeyPredicate.hxx.

                                                           {
    std::cout << "FindKeyPredicate 2-> :" << v1.first << std::endl;
    return v1.first == _value  ;
  }

Member Data Documentation

template<typename T1 , typename T2 >
T1 FindKeyPredicate< std::pair< T1, T2 > >::_value

Definition at line 68 of file FindKeyPredicate.hxx.


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