MCPcopy Create free account
hub / github.com/WebAssembly/wasm-c-api / destroyer

Class destroyer

include/wasm.hh:184–190  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

182// Ownership
183
184class destroyer {
185public:
186 template <typename T>
187 void operator()(T* ptr) {
188 ptr->destroy();
189 }
190};
191
192template<class T> using own = std::unique_ptr<T, destroyer>;
193template<class T> using ownvec = vec<own<T>>;

Callers 1

resetMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected