c++ - GNU C++ 库是否缺少 unordered_map 构造函数?

标签 c++ gcc c++11 unordered-map

至少one C++ reference列出以下构造函数签名:

explicit unordered_map ( const allocator_type& alloc );

不过,它似乎没有包含在 /usr/include/c++/4.8.2/bits/unordered_map.h 中。至少我无法发现它,编译器也无法找到它。

因此,我的问题是:这个构造函数是由 C++ 标准指定的吗? unordered_map 的 GNU C++ 库实现是否违反了这方面的标准?

最佳答案

Is this constructor specified by the C++ standard?

是的。

Is the GNU C++ library implementation of unordered_map violating the standard in that respect?

是的。

关于c++ - GNU C++ 库是否缺少 unordered_map 构造函数?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19924078/

相关文章:

c++ - 这个语法 "decltype(*(T*)(0)**(U*)(0)) "是什么意思?

c++ - 如何在 multimap 中存储两个以上的值?

c - 通过Cygwin运行exe文件.错误输出:Segmentation fault(core dumped)

c++ - 如何将类的静态方法引入命名空间?

linux - PATH 和 COMPILER_PATH 之间的区别

c - "svc"是否有任何 gcc 编译器原语?

c++ - 这个 C++ 代码在技术上会发生什么?

c++ - 在函数中获取 c 样式字符串的大小(不是长度)

python - 如何访问 SWIG 中声明的模板结构变量?

c++ - 等同于DirectX 9的DirectX 11错误