Open CASCADE Technology  7.9.3
Data Structures | Macros
NCollection_DefaultHasher.hxx File Reference
#include <functional>
#include <Standard_HashUtils.hxx>
#include <NCollection_DefineHasher.hxx>

Data Structures

struct  NCollection_DefaultHasher< TheKeyType >
 
struct  NCollection_DefaultHasher< TheKeyType * >
 Explicit specialization for bool. More...
 

Macros

#define DEFINE_DEFAULT_HASHER_PURE(TheKeyType)
 

Macro Definition Documentation

#define DEFINE_DEFAULT_HASHER_PURE (   TheKeyType)
Value:
template <> \
{ \
size_t operator()(const TheKeyType theKey) const noexcept \
{ \
return static_cast<size_t>(theKey); \
} \
\
bool operator()(const TheKeyType theK1, const TheKeyType theK2) const noexcept \
{ \
return theK1 == theK2; \
} \
};
Definition: NCollection_DefaultHasher.hxx:32