| 505 | |
| 506 | template <typename T> |
| 507 | class HasBasicFinalizer { |
| 508 | private: |
| 509 | template <typename U, void (U::*)(Napi::BasicEnv)> |
| 510 | struct SFINAE {}; |
| 511 | template <typename U> |
| 512 | static char test(SFINAE<U, &U::Finalize>*); |
| 513 | template <typename U> |
| 514 | static int test(...); |
| 515 | |
| 516 | public: |
| 517 | static constexpr bool value = sizeof(test<T>(0)) == sizeof(char); |
| 518 | }; |
| 519 | |
| 520 | } // namespace details |
| 521 |
nothing calls this directly
no outgoing calls
no test coverage detected