docs/Writerside/topics/map.h.md

changeset 1445
e8089a590b71
parent 1444
dd9dcbb39c2f
equal deleted inserted replaced
1444:dd9dcbb39c2f 1445:e8089a590b71
220 ```C 220 ```C
221 #include <cx/map.h> 221 #include <cx/map.h>
222 222
223 void *cxMapGet(CxMap *map, KeyType key); 223 void *cxMapGet(CxMap *map, KeyType key);
224 224
225 bool cxMapContains(CxMap *map, KeyType key);
226
225 size_t cxMapSize(const CxMap *map); 227 size_t cxMapSize(const CxMap *map);
226 ``` 228 ```
227 229
228 With the function `cxMapGet()` you can retrieve a value stored under the specified `key`. 230 With the function `cxMapGet()` you can retrieve a value stored under the specified `key`.
229 If there is no such value, this function returns `NULL`. 231 If there is no such value, this function returns `NULL`.
232
233 The function `cxMapContains()` returns `true` if the map contains an element with the specified `key`,
234 and `false` otherwise.
230 235
231 The function `cxMapSize()` returns how many key/value-pairs are currently stored in the map. 236 The function `cxMapSize()` returns how many key/value-pairs are currently stored in the map.
232 237
233 ## Remove 238 ## Remove
234 239

mercurial