facil.io

#./fio-stl/210 map2.h

3 public symbols.

#Macros

#FIO_MAP2_INIT

c
#define FIO_MAP2_INIT   \
  { 0 }

Symbol type: macro

#FIO_MAP2_EACH

c
#define FIO_MAP2_EACH(map_name, map_ptr, i)   \
  for (FIO_NAME(map_name, iterator_s)   \
           i = FIO_NAME(map_name, get_next)(map_ptr, NULL);   \
       FIO_NAME(map_name, iterator_is_valid)(&i);   \
       i = FIO_NAME(map_name, get_next)(map_ptr, &i))

Iterates through the map using an iterator object.

Symbol type: macro

#FIO_MAP2_EACH_REVERSED

c
#define FIO_MAP2_EACH_REVERSED(map_name, map_ptr, i)   \
  for (FIO_NAME(map_name, iterator_s)   \
           i = FIO_NAME(map_name, get_prev)(map_ptr, NULL);   \
       FIO_NAME(map_name, iterator_is_valid)(&i);   \
       i = FIO_NAME(map_name, get_prev)(map_ptr, &i))

Iterates through the map using an iterator object.

Symbol type: macro