| 491 | |
| 492 | template <typename T> |
| 493 | class HasExtendedFinalizer { |
| 494 | private: |
| 495 | template <typename U, void (U::*)(Napi::Env)> |
| 496 | struct SFINAE {}; |
| 497 | template <typename U> |
| 498 | static char test(SFINAE<U, &U::Finalize>*); |
| 499 | template <typename U> |
| 500 | static int test(...); |
| 501 | |
| 502 | public: |
| 503 | static constexpr bool value = sizeof(test<T>(0)) == sizeof(char); |
| 504 | }; |
| 505 | |
| 506 | template <typename T> |
| 507 | class HasBasicFinalizer { |
nothing calls this directly
no outgoing calls
no test coverage detected