Creates an instance of a map or a multimap.
- Parameters
-
[in] | pfnCompare | is an optional pointer to a function of the PMAPCOMPAREFUNC type. The function must implement a binary predicate used to compare and order elements by their keys. If the parameter is NULL the default predicate is used. That is a check if the first element is less than the second one. See remarks for the description of 'less' term. |
[in] | fMultimap | flag defines if the elements of the map must have unique keys. I.e. if the flag is true flag the keys must be unique throughout all elements of one instance of the map.If the flag is not set then multiple map elements are allowed to contain the same key. This is the case of a so called multimap. |
- Returns
- The function returns a handle to an instance of the created map. If the function fails it returns NULL. Use GetLastChsvError to get extended error information. information.