Initial commit - restart from existing code

This commit is contained in:
Tom Ray
2026-02-13 19:15:05 +01:00
parent 11df621bb2
commit 7c352bc280
1906 changed files with 491226 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
#ifndef ENTT_COMMON_TRANSPARENT_EQUAL_TO_H
#define ENTT_COMMON_TRANSPARENT_EQUAL_TO_H
#include <type_traits>
namespace test {
struct transparent_equal_to {
using is_transparent = void;
template<typename Type, typename Other>
constexpr std::enable_if_t<std::is_convertible_v<Other, Type>, bool>
operator()(const Type &lhs, const Other &rhs) const {
return lhs == static_cast<Type>(rhs);
}
};
} // namespace test
#endif