What are the advantages of using the C++ Boost libraries?(使用 C++ Boost 库的优势是什么?)
本文介绍了使用 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]
这篇关于使用 C++ Boost 库的优势是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
织梦狗教程
本文标题为:使用 C++ Boost 库的优势是什么?
基础教程推荐
猜你喜欢
- 我应该对 C++ 中的成员变量和函数参数使用相同的名称吗? 2021-01-01
- 如果我为无符号变量分配负值会发生什么? 2022-01-01
- 通过引用传递 C++ 迭代器有什么问题? 2022-01-01
- 为什么 RegOpenKeyEx() 在 Vista 64 位上返回错误代码 2021-01-01
- 初始化列表*参数*评估顺序 2021-01-01
- 为什么 typeid.name() 使用 GCC 返回奇怪的字符以及如 2022-09-16
- 为什么派生模板类不能访问基模板类的标识符? 2021-01-01
- CString 到 char* 2021-01-01
- GDB 显示调用堆栈上函数地址的当前编译二进制文 2022-09-05
- 非静态 const 成员,不能使用默认赋值运算符 2022-10-09
