boxed_type.h 360 B

1234567891011121314151617181920
  1. #ifndef ENTT_COMMON_BOXED_TYPE_H
  2. #define ENTT_COMMON_BOXED_TYPE_H
  3. namespace test {
  4. template<typename Type>
  5. struct boxed_type {
  6. Type value{};
  7. };
  8. template<typename Type>
  9. inline bool operator==(const boxed_type<Type> &lhs, const boxed_type<Type> &rhs) {
  10. return lhs.value == rhs.value;
  11. }
  12. using boxed_int = boxed_type<int>;
  13. } // namespace test
  14. #endif