pointer_stable.h 435 B

1234567891011121314151617
  1. #ifndef ENTT_COMMON_POINTER_STABLE_H
  2. #define ENTT_COMMON_POINTER_STABLE_H
  3. #include <compare>
  4. namespace test {
  5. struct pointer_stable {
  6. static constexpr auto in_place_delete = true;
  7. [[nodiscard]] constexpr bool operator==(const pointer_stable &other) const noexcept = default;
  8. [[nodiscard]] constexpr auto operator<=>(const pointer_stable &other) const noexcept = default;
  9. int value{};
  10. };
  11. } // namespace test
  12. #endif