C.2B.2B Comparison of programming languages (associative array)



or less efficiently creates temporary std::string values:



with extension of initialization lists in c++11, entries can added during map s construction shown below:



you can iterate through list following code (c++03):



the same task in new c++11:



in c++, std::map class templated allows data types of keys , values different different map instances. given instance of map class keys must of same base type. same must true of values. although std::map typically implemented using self-balancing binary search tree, c++11 defines second map called std::unordered_map algorithmic characteristics of hash table. common vendor extension stl well, called hash_map, being available such implementations sgi , stlport.







Comments

Popular posts from this blog

CACHEbox ApplianSys

Kinship systems Apache

Western Apache Apache