| 123456789101112131415161718192021222324 |
- #ifndef ENTT_COMMON_BOXED_TYPE_H
- #define ENTT_COMMON_BOXED_TYPE_H
- namespace test {
- template<typename Type>
- struct boxed_type {
- Type value{};
- operator Type() const noexcept {
- return value;
- }
- [[nodiscard]] bool operator==(const boxed_type &other) const noexcept {
- return value == other.value;
- }
- };
- using boxed_int = boxed_type<int>;
- using boxed_char = boxed_type<char>;
- } // namespace test
- #endif
|