ReactOS 0.4.15-dev-7674-gc0b4db1
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 118 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 121 of file atlcoll.h.

124 {
125 return (Val1 == Val2);
126 }

◆ CompareElementsOrdered()

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

Definition at line 128 of file atlcoll.h.

131 {
132 if (Val1 < Val2)
133 {
134 return -1;
135 }
136 else if (Val1 > Val2)
137 {
138 return 1;
139 }
140
141 return 0; // equal
142 }

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