docs/Writerside/topics/map.h.md

changeset 1390
ff077f793c5d
parent 1344
8afaeb395b3c
equal deleted inserted replaced
1389:bbdc4aee8534 1390:ff077f793c5d
27 > If you want to lazy-initialize maps, you can use the global `cxEmptyMap` symbol as a placeholder instead of using a `NULL`-pointer. 27 > If you want to lazy-initialize maps, you can use the global `cxEmptyMap` symbol as a placeholder instead of using a `NULL`-pointer.
28 > While you *must not* insert elements into that map, you can safely access this map or create iterators. 28 > While you *must not* insert elements into that map, you can safely access this map or create iterators.
29 > This allows you to write clean code without checking for `NULL`-pointer everywhere. 29 > This allows you to write clean code without checking for `NULL`-pointer everywhere.
30 > You still need to make sure that the placeholder is replaced with an actual map before inserting elements. 30 > You still need to make sure that the placeholder is replaced with an actual map before inserting elements.
31 31
32 > In the Sections below, the type for the key is denoted `KeyType`. 32 > All functions working with keys are implemented as generics, so that the following types are supported:
33 > All functions are implemented as generics, so that the following types are supported:
34 > `CxHashKey`, `cxstring`, `cxmutstr`, `const char*`, and `char*`. 33 > `CxHashKey`, `cxstring`, `cxmutstr`, `const char*`, and `char*`.
34 > When we write `KeyType`, we mean any of these types.
35 > {style="note"} 35 > {style="note"}
36 36
37 ## Examples 37 ## Examples
38 38
39 ```C 39 ```C

mercurial