MCPcopy Create free account
hub / github.com/nodejs/node-addon-api / HasExtendedFinalizer

Class HasExtendedFinalizer

napi-inl.h:493–504  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

491
492template <typename T>
493class 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
506template <typename T>
507class HasBasicFinalizer {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected