Open Search
    IsTriviallyHashable< T, typename > Struct Template Reference

    #include <apibase.h>

    Detailed Description

    template<typename T, typename = Bool>
    struct maxon::IsTriviallyHashable< T, typename >

    This type trait determines if the UniqueHash of values of type T can be computed "trivially" by hashing the raw bytes via UniqueHash::GetUniqueHashCode(). By default, this holds only for scalar types. You can specialize this template for your own types if they can be hashed trivially. Alternativaly you can add a static member function "static constexpr Bool TriviallyHashable() { return std::true_type; }".

    Template Parameters
    TType to check.

    Static Public Attributes

    static const Bool value
     

    Member Data Documentation

    ◆ value

    const Bool value
    static