Lines Matching refs:Type
21 #define PREVENT_COPY_AND_ASSIGN(Type) \
23 Type(const Type&) = delete; \
24 void operator=(const Type&) = delete
26 #define DESCRIPTION_TYPE(Type) \
27 int compare(const Type& rhs) const { return memcmp(this, &rhs, sizeof(Type));} \
28 bool operator==(const Type& other) const { return compare(other) == 0; } \
29 bool operator!=(const Type& other) const { return compare(other) != 0; } \
30 friend inline int strictly_order_type(const Type& lhs, const Type& rhs) { return lhs.compare(rhs) < 0; } \
31 friend inline int compare_type(const Type& lhs, const Type& rhs) { return lhs.compare(rhs); } \
32 friend inline hash_t hash_type(const Type& entry) { return entry.hash(); }
34 #define REQUIRE_COMPATIBLE_LAYOUT(Type) \
35 static_assert(std::is_standard_layout<Type>::value, \
36 #Type " must have standard layout")