Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
unordered_map默认情况下C++0x使用什么位哈希?std::hash函数返回size_t。这是否意味着unordered_map使用 16 位散列函数?
unordered_map
C++0x
std::hash
size_t
std::unordered_set默认使用std::hash。
std::unordered_set
如果std::size_t对您来说是 16 位,那么我猜它确实使用了 16 位哈希。在 16 位机器上,我希望unordered_map::max_size()它足够低,以至于使用如此弱的哈希不会成为问题。
std::size_t
unordered_map::max_size()
我有一个使用 onclick fct 的按钮:
<input type="button" onclick="document.location = 'mylocation.html';" class="button urlToMainDiv" value="B