X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/ab1a94e98438ed2d29533aca9e613d667237c3d0..8250fdfeb9c8dd3ae2a1d19f3c89871c9599d0f8:/include/xbt/fifo.h?ds=sidebyside diff --git a/include/xbt/fifo.h b/include/xbt/fifo.h index 61879ca48a..66ccf3d1ec 100644 --- a/include/xbt/fifo.h +++ b/include/xbt/fifo.h @@ -14,9 +14,13 @@ SG_BEGIN_DECL() /** @addtogroup XBT_fifo * @brief This section describes the API to generic workqueue. * - * These functions provide the same kind of functionality as dynamic arrays but in time O(1). - * However these functions use malloc/free way too much often. + * These functions provide the same kind of functionality as dynamic arrays + * but in time O(1). However these functions use malloc/free way too much often. + * + * @deprecated If you are using C++, you might want to used `std::list`, + * `std::deque` or `std::queue instead`. */ + /** @defgroup XBT_fifo_cons Fifo constructor and destructor * @ingroup XBT_fifo * @@ -111,15 +115,4 @@ XBT_PUBLIC(xbt_fifo_item_t) xbt_fifo_getPrevItem(xbt_fifo_item_t i); SG_END_DECL() -#ifdef __cplusplus -namespace simgrid { -namespace xbt { - inline void destroy(xbt_fifo_t f) - { - xbt_fifo_free(f); - } -} -} -#endif - #endif /* _XBT_FIFO_H */