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

Class HasBasicFinalizer

napi-inl.h:507–518  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

505
506template <typename T>
507class 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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected