IsTriviallyEquatable< T > Struct Template Reference

#include <apibase.h>

详细描述

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 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
T Type to check.

静态公共属性

static const Bool   value

Member Data Documentation

◆  value

const Bool value static