SafeTypes2
Loading...
Searching...
No Matches
s2ctx_iter Struct Reference

The struct s2ctx_iter defines publically visible members of the iterator base type structure. More...

#include <s2obj.h>

Public Attributes

s2iter_final_func_t final
 slot for the finalizer subroutine.
 
s2iter_stepfunc_t next
 the iterator stepping function.
 
void * key
 the key for the current value.
 
T * value
 the slot holding the value object at the current iterator position.
 

Detailed Description

The struct s2ctx_iter defines publically visible members of the iterator base type structure.

Member Data Documentation

◆ key

void* s2ctx_iter::key

the key for the current value.

This is intptr_t for s2list_t and s2data_t * for s2dict_t. When the key is an object, it's an unretained reference to the internal structure member, so it shouldn't be modified or have its reference or kept count changed.


The documentation for this struct was generated from the following file: