chsvlib
chsv helper source code

◆ PMAPELEMENTFUNCTION

typedef bool(* PMAPELEMENTFUNCTION) (const void *pKey, std::size_t cbKey, void *pValue, std::size_t cbValue, void *lpArg) NOEXCEPT_CPP17

A client callback function used in the MapApplyFuncToElements function as a procedure over each element of the map.

Parameters
[in]pKeyis a pointer to a key of an element.
[in]cbKeyis a byte size of the key.
[in]pValueis a pointer to a value of an element.
[in]cbValueis a byte size of the value. If the element has been inserted by pointer (without copying), the cbValue is 0.
[in]lpArgis a pointer passed as the last parameter of the MapApplyFuncToElements function. The pointer is passed to the callback function "as-is".
Returns
For the definition of how the MapApplyFuncToElements function processes the return values see its definition.
Remarks
Declared in chsvmap.h.