LibJuno 1.0.1
LibJuno is a lightweight C11 library designed specifically for embedded systems.
Loading...
Searching...
No Matches
JUNO_MAP_HASHABLE_POINTER_API_TAG Struct Reference

Hashing and null-check operations for map keys/values. More...

#include <map_api.h>

Data Fields

JUNO_RESULT_SIZE_T(* Hash )(JUNO_POINTER_T tItem)
 Compute a hash value for the given key.
 
JUNO_RESULT_BOOL_T(* IsValueNull )(JUNO_POINTER_T tItem)
 Determine if a value slot is logically empty/null.
 

Detailed Description

Hashing and null-check operations for map keys/values.

Implementations must:

  • Hash: produce a size_t hash for the provided key pointer.
  • IsValueNull: return true when the slot (entry) is logically empty.

Field Documentation

◆ Hash

JUNO_RESULT_SIZE_T(* JUNO_MAP_HASHABLE_POINTER_API_TAG::Hash) (JUNO_POINTER_T tItem)

Compute a hash value for the given key.

◆ IsValueNull

JUNO_RESULT_BOOL_T(* JUNO_MAP_HASHABLE_POINTER_API_TAG::IsValueNull) (JUNO_POINTER_T tItem)

Determine if a value slot is logically empty/null.


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