Boost
arrow_drop_down
Boost.Unordered
M
D

本次发布

Daniel James
Daniel James
作者
Joaquin M. López Muñoz
Joaquin M. López Muñoz
维护者
Christian Mazakas
Christian Mazakas
维护者
sdarwin
sdarwin
贡献者

依赖项

Boost.Unordered

Branch CI Drone status Build status codecov Deps Documentation Enter the Matrix
Branch CI Drone status Build status codecov Deps Documentation Enter the Matrix
BSL 1.0 C++11 required Header-only library

Boost.Unordered 提供了一个具有不同标准合规级别、性能和预期使用场景的哈希容器目录

boost::unordered_set boost::unordered_map boost::unordered_multiset boost::unordered_multimap

    完全符合标准的 std::unordered_[multi](set|map) 实现,但速度更快,并且即使您正在使用旧版本的 C++,也能支持最新的标准修订(异构查找、try_emplacecontains 等)

boost::unordered_flat_set boost::unordered_flat_map

    这些是其中最快的。基于开放寻址,这些容器为了获得顶级性能,在标准上略有偏差。

boost::unordered_node_set boost::unordered_node_map

    boost::unordered_flat_(set|map) 的变体,提供指针稳定性。

boost::concurrent_flat_set boost::concurrent_flat_map

    为多线程场景提供高性能。引入了新的非标准、无迭代器的 API。

boost::concurrent_node_set boost::concurrent_node_map

    boost::concurrent_flat_(set|map) 的变体,提供指针稳定性。

了解 Boost.Unordered

Boost.Unordered 可以通过多种方式安装

  • 下载 Boost 即可开始使用(这是一个仅头文件库,无需编译)。
  • 使用 Conan 2:如果您还没有安装,请在您的 conanfile.txt 中添加 Boost 条目(示例要求至少 Boost 1.86)
[requires]
boost/[>=1.86.0]
    如果您不使用任何编译的 Boost 库,以下操作将跳过编译
[options]
boost:header_only=True
  • 使用 vcpkg:执行命令
vcpkg install boost-unordered

支持

贡献

全部时间

Daniel James
Daniel James
贡献者
Peter Dimov
Peter Dimov
贡献者
braden
braden
贡献者
Rene Rivera
Rene Rivera
贡献者
Beman Dawes
Beman Dawes
贡献者
Marshall Clow
Marshall Clow
贡献者
Alexander Grund
Alexander Grund
贡献者
Troy D. Straszheim
Troy D. Straszheim
贡献者
John Maddock
John Maddock
贡献者
Michael A. Jackson
Michael A. Jackson
贡献者
Zoey Greer
Zoey Greer
贡献者
Edward Diener
Edward Diener
贡献者
Glen Fernandes
Glen Fernandes
贡献者
Adam Wulkiewicz
Adam Wulkiewicz
贡献者
Chris Needham
Chris Needham
贡献者
LeonineKing1199
LeonineKing1199
贡献者
Chris Elrod
Chris Elrod
贡献者
Dmitry
Dmitry
贡献者
Stephen Kelly
Stephen Kelly
贡献者
NamaNamazu
NamaNamazu
贡献者
Daniela Engert
Daniela Engert
贡献者
Flamefire
Flamefire
贡献者