ReactOS  0.4.12-dev-43-g63b00d8
ATL::CDefaultCompareTraits< T > Class Template Reference

#include <atlcoll.h>

Inheritance diagram for ATL::CDefaultCompareTraits< T >:

Static Public Member Functions

static bool CompareElements (_In_ const T &Val1, _In_ const T &Val2)
 
static int CompareElementsOrdered (_In_ const T &Val1, _In_ const T &Val2)
 

Detailed Description

template<typename T>
class ATL::CDefaultCompareTraits< T >

Definition at line 98 of file atlcoll.h.

Member Function Documentation

◆ CompareElements()

template<typename T >
static bool ATL::CDefaultCompareTraits< T >::CompareElements ( _In_ const T Val1,
_In_ const T Val2 
)
inlinestatic

Definition at line 101 of file atlcoll.h.

104  {
105  return (Val1 == Val2);
106  }

◆ CompareElementsOrdered()

template<typename T >
static int ATL::CDefaultCompareTraits< T >::CompareElementsOrdered ( _In_ const T Val1,
_In_ const T Val2 
)
inlinestatic

Definition at line 108 of file atlcoll.h.

111  {
112  if (Val1 < Val2)
113  {
114  return -1;
115  }
116  else if (Val1 > Val2)
117  {
118  return 1;
119  }
120 
121  return 0; // equal
122  }

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