Hashtable in C++?

后端 未结 9 860
孤城傲影
孤城傲影 2020-12-02 08:53

I usually use C++ stdlib map whenever I need to store some data associated with a specific type of value (a key value - e.g. a string or other object). The stdlib map implem

9条回答
  •  执笔经年
    2020-12-02 09:31

    If you have the TR1 extensions available for yor compiler, use those. If not, boost.org has a version that's quite similar except for the std:: namespace. In that case, put in a using-declaration so you can switch to std:: later.

提交回复
热议问题