src/ucx/cx/iterator.h

changeset 490
d218607f5a7e
parent 438
22eca559aded
child 504
c094afcdfb27
--- a/src/ucx/cx/iterator.h	Sat Mar 25 17:18:51 2023 +0100
+++ b/src/ucx/cx/iterator.h	Fri May 05 18:02:11 2023 +0200
@@ -56,6 +56,12 @@
     void *(*current)(void const *);
 
     /**
+     * Original implementation in case the function needs to be wrapped.
+     */
+    __attribute__ ((__nonnull__))
+    void *(*current_impl)(void const *);
+
+    /**
      * Advances the iterator.
      */
     __attribute__ ((__nonnull__))
@@ -68,7 +74,7 @@
     bool (*flag_removal)(void *);
 
     /**
-     * Indicates whether this iterator is muting.
+     * Indicates whether this iterator may remove elements.
      */
     bool mutating;
 

mercurial