CrystalSpace

Public API Reference

CS::EqualComparator< T > Class Template Reference

A template providing equality comparison. More...

#include <csutil/comparator.h>

List of all members.

Public Member Functions

bool operator() (T const &r1, T const &r2) const
 Compare two objects of the same type.

Detailed Description

template<typename T>
class CS::EqualComparator< T >

A template providing equality comparison.

Definition at line 134 of file comparator.h.


Member Function Documentation

template<typename T >
bool CS::EqualComparator< T >::operator() ( T const &  r1,
T const &  r2 
) const [inline]

Compare two objects of the same type.

Parameters:
r1 Reference to first object.
r2 Reference to second object.
Returns:
Whether the objects are equal.
Remarks:
Default implementation uses csComparator<>, which in turn requires operator<.

Definition at line 145 of file comparator.h.


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

Generated for Crystal Space 2.1 by doxygen 1.6.1