Files
entt/test/common/pointer_stable.h
2024-02-09 09:29:09 +01:00

22 lines
448 B
C++

#ifndef ENTT_COMMON_POINTER_STABLE_H
#define ENTT_COMMON_POINTER_STABLE_H
namespace test {
struct pointer_stable {
static constexpr auto in_place_delete = true;
int value{};
};
inline bool operator==(const pointer_stable &lhs, const pointer_stable &rhs) {
return lhs.value == rhs.value;
}
inline bool operator<(const pointer_stable &lhs, const pointer_stable &rhs) {
return lhs.value < rhs.value;
}
} // namespace test
#endif