Testing
Testing. You are using auto so you have c++11 code. #include <<strong>unordered_map</strong>> (no need for tr1!).
You need a c++11 compliant compiler (e.g. A hash_map is an older, unstandardized version of what for standardization purposes is called an unordered_map (originally in tr1, and included in the standard since c++11). Being templates, they can be used to store arbitrary elements, such as integers or custom classes.the following containers are defined in the current revision of the c++ standard:
C++ の配列は、サイズをプログラマが管理しますが、Std::vector は、配列のサイズを意識せずに、プログラミングできます。 Stlに含まれるVectorなどのデータを管理するテンプレートクラスをコンテナと呼びます。 Std::vector シンプルな例
You are using auto so you have c++11 code. A hash_map is an older, unstandardized version of what for standardization purposes is called an unordered_map (originally in tr1, and included in the standard since c++11). In the programming language c++, unordered associative containers are a group of class templates in the c++ standard library that implement hash table variants.
Commented, Don't Name Your Variable Map (Which Is Std::map) But E.g.
#include <<strong>unordered_map</strong>> (no need for tr1!). You need a c++11 compliant compiler (e.g. Being templates, they can be used to store arbitrary elements, such as integers or custom classes.the following containers are defined in the current revision of the c++ standard:
Comments
Post a Comment