OKlibrary  0.2.1.6
OKlib::TestExecutionTools::Id< T > Class Template Reference

Identity relation. More...

#include <ExampleRelations.hpp>

Inheritance diagram for OKlib::TestExecutionTools::Id< T >:
binary_function

List of all members.

Public Member Functions

 Id ()
bool operator() (const T &x, const T &y) const

Detailed Description

template<typename T>
class OKlib::TestExecutionTools::Id< T >

Identity relation.

Id<T> is nearly the same as std::equal_to<T> (with the only differences, that we are precise about the argument type (which is const T&), that the bracket-operator member function is const, and that the default constructor is explicitely defined so that const objects of type Id can be defined).

Definition at line 33 of file ExampleRelations.hpp.


Constructor & Destructor Documentation

template<typename T >
OKlib::TestExecutionTools::Id< T >::Id ( ) [inline]

Definition at line 34 of file ExampleRelations.hpp.


Member Function Documentation

template<typename T >
bool OKlib::TestExecutionTools::Id< T >::operator() ( const T x,
const T y 
) const [inline]

Definition at line 35 of file ExampleRelations.hpp.


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