ck_hs_next (3) - Linux Man Pages

ck_hs_next: iterate to next entry in hash set

NAME

ck_hs_next - iterate to next entry in hash set

LIBRARY

Concurrency Kit (libck, -lck)

SYNOPSIS

In ck_hs.h Ft bool Fn ck_hs_next ck_hs_t *hs ck_hs_iterator_t *iterator void **entry

DESCRIPTION

The Fn ck_hs_next 3 function will increment the iterator object pointed to by Fa iterator to point to the next non-empty hash set entry. If Fn ck_hs_next 3 returns true then the pointer pointed to by Fa entry is initialized to the current hash set key pointed to by the Fa iterator object.

It is expected that Fa iterator has been initialized using the ck_hs_iterator_init3 function or statically initialized using CK_HS_ITERATOR_INITIALIZER.

RETURN VALUES

If Fn ck_hs_next 3 returns true then the object pointed to by Fa entry points to a valid hash set key. If Fn ck_hs_next 3 returns false then the value of the object pointed to by Fa entry is undefined.

ERRORS

Behavior is undefined if Fa iterator or Fa hs are uninitialized.

SEE ALSO

ck_hs_init3, ck_hs_move3, ck_hs_destroy3, CK_HS_HASH3, ck_hs_iterator_init3, ck_hs_get3, ck_hs_put3, ck_hs_put_unique3, ck_hs_set3, ck_hs_fas3, ck_hs_remove3, ck_hs_grow3, ck_hs_rebuild3, ck_hs_gc3, ck_hs_count3, ck_hs_reset3, ck_hs_reset_size3, ck_hs_stat3

Additional information available at http://concurrencykit.org/