ReactOS  0.4.14-dev-55-g2da92ac
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 107 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 110 of file atlcoll.h.

113  {
114  return (Val1 == Val2);
115  }

◆ CompareElementsOrdered()

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

Definition at line 117 of file atlcoll.h.

120  {
121  if (Val1 < Val2)
122  {
123  return -1;
124  }
125  else if (Val1 > Val2)
126  {
127  return 1;
128  }
129 
130  return 0; // equal
131  }

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