Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
add another word about the trap of dynar_search with pointed elements
authorMartin Quinson <martin.quinson@loria.fr>
Wed, 13 Feb 2013 08:07:59 +0000 (09:07 +0100)
committerMartin Quinson <martin.quinson@loria.fr>
Wed, 13 Feb 2013 08:08:09 +0000 (09:08 +0100)
include/xbt/dynar.h

index 735b625..12cfb02 100644 (file)
@@ -52,6 +52,12 @@ SG_BEGIN_DECL()
   * \skip end_of_doxygen
   * \until }
   *
+  * Note that if you use dynars to store pointed data, the
+  * xbt_dynar_search(), xbt_dynar_search_or_negative() and
+  * xbt_dynar_member() will not quite for you. Instead of comparing
+  * your pointed elements, they will compare the pointer to them. See
+  * the documentation of xbt_dynar_search() for more info.
+  * 
   */
 /** @defgroup XBT_dynar_cons Dynar constructor and destructor
  *  @ingroup XBT_dynar