X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/64ea8dcf1daac53da58d65aa91b7452aae8b13b7..f86ca5afc802e2e09db99c517ef30f507fdebc58:/include/xbt/swag.h diff --git a/include/xbt/swag.h b/include/xbt/swag.h index 2431b3088c..a0f6b3e759 100644 --- a/include/xbt/swag.h +++ b/include/xbt/swag.h @@ -24,6 +24,8 @@ SG_BEGIN_DECL() * It is basically a fifo but with restrictions so that it can be used as a set. Any operation (add, remove, belongs) * is O(1) and no call to malloc/free is done. * + * @deprecated If you are using C++, you might want to use + * `boost::intrusive::set` instead. */ /** @defgroup XBT_swag_type Swag types @ingroup XBT_swag @@ -193,15 +195,4 @@ static inline void *xbt_swag_getFirst(xbt_swag_t swag) SG_END_DECL() -#ifdef __cplusplus -namespace simgrid { -namespace xbt { - inline void destroy(xbt_swag_t s) - { - xbt_swag_free(s); - } -} -} -#endif - #endif /* _XBT_SWAG_H */