是hash_map部分的STL吗? [英] Is hash_map part of the STL?

查看:111
本文介绍了是hash_map部分的STL吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

快速问题... is hash_map是STL的一部分?

Quick question...Is hash_map part of the STL?

推荐答案

STL 具有 hash_map ,但C ++标准库

由于一个常见的误解,你可能会认为C ++标准库是STL,或者你的工具链中的部分C ++标准库实现为一个STL实现。它不是。

Due to a common misconception, you may think of the C++ Standard Library as "the STL", or of parts of your toolchains implementation of the C++ Standard Library as "an STL implementation". It is not.

这也是一个很大的耻ame,MSVC ++和GCC(其实现 hash_map 作为编译器特定扩展),将其放置在 std 命名空间< a>,这是高度误导。 * sigh *

It is also a great shame that both MSVC++ and GCC (which implement hash_map as a compiler-specific extension), place it in the std namespace, which is highly misleading. *sigh*

C ++ 11引入了 std :: unordered_map ,这不是不相似的。

C++11 has introduced std::unordered_map, which is not dissimilar.

这篇关于是hash_map部分的STL吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆