Open Search
    IsTriviallyEquatable< T > Struct Template Reference

    #include <apibase.h>

    Detailed Description

    template<typename T>
    struct maxon::IsTriviallyEquatable< T >

    This type trait determines if values of type T can be compared trivially for equality, i.e., by comparing the raw bytes. By default, this holds only for non-floating-point scalar types. You can specialize this template for your own types if they can be compared trivially. This helps to speed up some generic implementations such as DataDictionary. Keep in mind that a class with padding bytes cannot be compared trivially as the padding bytes have undetermined values.

    Template Parameters
    TType to check.

    Static Public Attributes

    static const Bool value
     

    Member Data Documentation

    ◆ value

    const Bool value
    static