A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[mc] Don't fail if some (part of a) segment is empty/not found
[simgrid.git]
/
include
/
xbt
/
heap.h
diff --git
a/include/xbt/heap.h
b/include/xbt/heap.h
index
4d9ef1d
..
8ab5753
100644
(file)
--- 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 */