CrystalSpace

Public API Reference

Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

csComparatorStruct< T > Class Template Reference

Template that can be used as a base class for comparators for POD (plain old data) types. More...

#include <csutil/comparator.h>

List of all members.

Static Public Member Functions

static int Compare (T const &r1, T const &r2)


Detailed Description

template<class T>
class csComparatorStruct< T >

Template that can be used as a base class for comparators for POD (plain old data) types.

It uses memcmp() to compare the raw memory representing the two items. Example:

 CS_SPECIALIZE_TEMPLATE csHashComputer<MyStruct> : 
   public csComparatorStruct<MyStruct> {};

Definition at line 110 of file comparator.h.


The documentation for this class was generated from the following file:
Generated for Crystal Space by doxygen 1.4.4