至少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/