Previous: Exchanging Data Packets in a Multithreaded Program, Up: Miscellaneous Topics [Contents][Index]
QSMM contains the implementation of functionality of STL
You can use the implementation in your C programs to create mapping objects without the need to rewrite the programs in C++ and potentially increase their complexity.
The behavior of the current implementation differs from the behavior of STL
multimap templates in the following:
qsmm_map_erasecorresponding to the method
multimaptemplates may call a key comparison function for the key of a removed key-value pair, so that key must be a valid object. Therefore, when removing a key-value pair from a map or multi-map, you must uninitialize and/or destroy the key of this pair after calling
qsmm_map_eraserather than before calling it.
multimaptemplate does not provide storing key-value pairs with the same key in the order of their insertion into a multi-map.
The header file qsmm/map.h contains the declarations of datatypes and functions of the implementation.
|• Creating Maps and Iterators|
|• Operations on Maps|
|• Operations on Iterators|