If the key is not present in the map container, it returns an iterator or a constant iterator which refers to map.end (). The C Programming Language by Kernighan and Ritchie has an example of making an associate map in c, and what I'll detail below is based on what I remember from that.īasically you'll need a struct Map that contains struct Key and struct Value. The map::find () is a built-in function in C++ STL that returns an iterator or a constant iterator that refers to the position where the key is present in the map. You'll probably have to make your own structure.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |