Boost C++ 库

...世界上最受推崇和设计精良的 C++ 库项目之一。 Herb SutterAndrei Alexandrescu,《C++ 编码规范

结构体模板 compare_hash - Boost C++ 函数库
PrevUpHomeNext

结构体模板 compare_hash

boost::intrusive::compare_hash

提要

// In header: <boost/intrusive/options.hpp>

template<bool Enabled> 
struct compare_hash {
};

描述

此选项设置器指定容器在比较对象之前是否会比较哈希值。 如果 store_hash<> 不为 true,则无法指定此选项。 当我们有负载因子较高的容器时,这特别有用,并且比较函数比比较已存储的哈希值更昂贵。


PrevUpHomeNext