TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
G3D::Array< T, MIN_ELEMENTS >::DefaultComparator Class Reference

#include <Array.h>

Public Member Functions

int operator() (const T &A, const T &B) const
 

Detailed Description

template<class T, size_t MIN_ELEMENTS = 10>
class G3D::Array< T, MIN_ELEMENTS >::DefaultComparator

Uses < and == to evaluate operator(); this is the default comparator for Array::partition.

Member Function Documentation

template<class T, size_t MIN_ELEMENTS = 10>
int G3D::Array< T, MIN_ELEMENTS >::DefaultComparator::operator() ( const T &  A,
const T &  B 
) const
inline
1163  {
1164  if (A < B) {
1165  return 1;
1166  } else if (A == B) {
1167  return 0;
1168  } else {
1169  return -1;
1170  }
1171  }

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