X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/6f48d1a65eeb69ebae17feb1d714db4a60764a51..d6b51bdf75f6c7eefae99d73fdd701febeb04db1:/include/xbt/heap.h diff --git a/include/xbt/heap.h b/include/xbt/heap.h index 4d9ef1d889..8ab575331d 100644 --- a/include/xbt/heap.h +++ b/include/xbt/heap.h @@ -36,4 +36,16 @@ XBT_PUBLIC(void ) xbt_heap_update(xbt_heap_t H, int i, double key); /* @} */ SG_END_DECL() + +#ifdef __cplusplus +namespace simgrid { +namespace xbt { + inline void destroy(xbt_heap_t h) + { + xbt_heap_free(h); + } +} +} +#endif + #endif /* _XBT_HEAP_H */