0

哪个选项是使用 unordered_set 进行有效查找的最佳方式,

  • Boost(我想这是要走的路,因为这些将在下一个标准中)
  • Sgi STL
  • STL端口

我之所以问,是因为 Scott Meyers 在 Effective STL 中提到了这三个,但这本书有点旧。

4

1 回答 1

2

If you have to work with a pre-C++11 compiler, use boost:

  • it's almost everywhere,
  • it's a header library,
  • it's modular,
  • it's compliant with all the standards, so totally compatible with the standard library.
于 2012-05-05T09:46:12.160 回答