ck_ht_count(3)

ck_ht_count3

Return count of key-value pairs in hash table

Usage

#include <ck_ht.h>

uint64_t

ck_ht_count(ck_ht_t *ht);

Library

Concurrency Kit (libck, -lck)

Overview

The ck_ht_count() function will return the number of entries in the hash table pointed to be the ht argument. The function may only be called without the presence of concurrent write operations.

Errors

Behavior is undefined if ht has not been initialized.

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.