ck_hs_next(3)

ck_hs_next3

Iterate to next entry in hash set

Usage

#include <ck_hs.h>

bool

ck_hs_next(ck_hs_t *hs, ck_hs_iterator_t *iterator, void **entry);

Library

Concurrency Kit (libck, -lck)

Overview

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

It is expected that iterator has been initialized using the ck_hs_iterator_init(3) function or statically initialized using CK_HS_ITERATOR_INITIALIZER.

Return values

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

Errors

Behavior is undefined if iterator or hs are uninitialized.

Releases

5 releases since Debian 8 (Jessie); the text changed 1 time.

  1. 8
  2. 9–13

From libck-dev 0.7.2-6 in Debian 13 (Trixie). Parsed by carta from the page's mdoc source.