Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
finish the conversion C++ of simix::MailboxImpl
[simgrid.git] / include / xbt / memory.hpp
index ac71407..3673943 100644 (file)
 namespace simgrid {
 namespace xbt {
 
-/** Delete operator which call a `destroy()` free function */
-template<class T>
-struct destroy_delete {
-  void operator()(T* t) const
-  {
-    destroy(t);
-  }
-};
-
-/** A `unique_ptr` which works for SimGrid C types (dynar, swag, automaton, etc.)
- *
- *  It uses an overloaded `destroy()` function to delete the object.
- */
-template<class T>
-using unique_ptr = std::unique_ptr<T, destroy_delete<T> >;
-
 }
 }