OCCT3D OCCT 8.0.1
OCCT documentation

Search guides and API reference

Enter at least two characters.

    Open CASCADE Technology Reference Manual 8.0.1
    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_DEFAULT_HASHER_PURE

    #define DEFINE_DEFAULT_HASHER_PURE ( TheKeyType)
    Value:
    template <> \
    struct NCollection_DefaultHasher<TheKeyType> \
    { \
    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:33