legate::DefaultDelete#
-
template<typename T>
class DefaultDelete# deleter for using unique_ptr with incomplete types
- Template Parameters:
T – the type to delete
// in header file: struct Foo; extern template class legate::DefaultDelete<Foo>; // Suppress instantiation std::unique_ptr<Foo, DefaultDelete<Foo>> foo; // OK // in source file: struct Foo { int x; }; template class legate::DefaultDelete<Foo>; // Explicit instantiation