使用 C++ Boost 库的优势是什么?

2021-12-24 00:00:00 c++ boost

所以,我一直在通读,似乎 Boost 库在实践中得到了很多使用(虽然不是在我的商店).为什么是这样?是什么让它如此美妙?

So, I've been reading through and it appears that the Boost libraries get used a lot in practice (not at my shop, though). Why is this? and what makes it so wonderful?

推荐答案

Boost 的使用如此广泛,因为:

Boost is used so extensively because:

  • 它是开源的并经过同行评审.
  • 它提供了 STL 没有提供的范围广泛的平台无关功能.
  • 它是对 STL 的补充而不是替代.
  • 许多 Boost 开发人员都是 C++ 标准委员会的成员.事实上,Boost 的很多部分都被认为包含在下一个 C++ 标准库中.
  • 它被很好地记录下来.
  • 其许可允许包含在开源和闭源项目中.
  • 它的功能通常相互依赖,因此您可以只链接您需要的部分.[Luc Hermitte 的评论]
  • It is open-source and peer-reviewed.
  • It provides a wide range of platform agnostic functionality that STL missed.
  • It is a complement to STL rather than a replacement.
  • Many of Boost developers are on the C++ standard committee. In fact, many parts of Boost is considered to be included in the next C++ standard library.
  • It is documented nicely.
  • Its license allows inclusion in open-source and closed-source projects.
  • Its features are not usually dependent on each other so you can link only the parts you require. [Luc Hermitte's comment]

相关文章