ck_ht_next(3)

ck_ht_next3

Iterate to next entry in hash table

Usage

#include <ck_ht.h>

bool

ck_ht_next(ck_ht_t *ht, ck_ht_iterator_t *iterator, ck_ht_entry_t **entry);

Library

Concurrency Kit (libck, -lck)

Overview

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

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

Return values

If ck_ht_next() returns true then the object pointed to by entry points to a valid hash table entry. If ck_ht_next() returns false then value of the object pointed to by entry is undefined.

Errors

Behavior is undefined if iterator or ht are uninitialized.

Releases

Unchanged in 5 releases since Debian 8 (Jessie).

  1. 8–13

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