chsvlib
chsv helper source code

◆ MapGetSize()

EXTERN_C std:: size_t Chusov::MapGetSize ( HCHSVMAP  hMap)
noexcept

The function returns a number of elements the map contains.

Parameters
[in]hMapis a handle to a map which size is to be retrieved.
Returns
On success the function returns a size of the map as a number of elements is contains. On failure the function returns (size_t) -1. Call GetLastChsvError to get extended error information.
Remarks
The complexity is \(O(1)\).
Declared in chsvmap.h.