关于 C++,不论是其长达 40 年的发展历史,或者 C++ 是高级还是低级编程语言的争论等等,这些内容都已老生常谈。如果你对 C++ 库有所研究,不用我多说,大家也都心中有数。C++ 库的发展已久,积累了多种多样的程序库,让现代系统开发如虎添翼。对个别 C++ 库,大家估计已有所了解,甚至可能清楚地知道它们的奇特之处。
不过,正因为 C++ 历史悠久,社区力量庞大,资源多而杂,让人眼花缭乱。因此,所以选择正确的 C++ 库是个不小的挑战。当然,本文的目的不是深入研究各个 C++ 库,而是向大家介绍我认为在 2021 年及未来会发挥重要力量的程序库。
C++
标准库
–
精华中的精华
一提到
C ++ 标准库
,马上就会想到 STL。作为 C++ 标准语言的一部分,C++ 标准库不仅是编程语言,更是标准的程序库资源,且由国际标准化组织(ISO)监督制定。点击
链接
,可以直接找到目前最新的 C++ 版本及其标准库。
FileSystem 库,则提供了对文件系统及其组件(如路径、目录和常规文件)执行操作的工具。在 C++ 14 中,这个库还只是试验性的产品,而到 C++ 17,则成为了标准库的一部分。准确地说,命名空间由 std::experimental::filesystem 变成了 std::filesystem。 使用标准库内的工具总是最好的,因为行为可以在不同平台得到广泛地定义,只要平台支持 C++。
那么,STL 呢?标准模板库是处理容器、迭代器和算法的标准库子集。STL 是一个通用库,帮助用现代高效算法管理数据集合。我认为 C++ 标准库,包括 STL,都是 C++ 程序员的日常必备。
Necessary cookies are absolutely essential for the website to function properly. These cookies ensure basic functionalities and security features of the website, anonymously.
Cookie
Duration
Description
cookielawinfo-checbox-analytics
11 months
This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics".
cookielawinfo-checbox-functional
11 months
The cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional".
cookielawinfo-checbox-others
11 months
This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other.
cookielawinfo-checkbox-necessary
11 months
This cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary".
cookielawinfo-checkbox-performance
11 months
This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance".
viewed_cookie_policy
11 months
The cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data.
Advertisement cookies are used to provide visitors with relevant ads and marketing campaigns. These cookies track visitors across websites and collect information to provide customized ads.
Cookie
Duration
Description
_mkto_trk
2 years
This cookie, provided by Marketo, has information (such as a unique user ID) that is used to track the user's site usage. The cookies set by Marketo are readable only by Marketo.
test_cookie
15 minutes
The test_cookie is set by doubleclick.net and is used to determine if the user's browser supports cookies.
utm_medium
2 months
This cookie is used to record from where the visitor came to the website orginally. This information is used by the website operator to know the efficiency of their marketing.
Functional cookies help to perform certain functionalities like sharing the content of the website on social media platforms, collect feedbacks, and other third-party features.
Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics the number of visitors, bounce rate, traffic source, etc.
Cookie
Duration
Description
_ga
2 years
The _ga cookie, installed by Google Analytics, calculates visitor, session and campaign data and also keeps track of site usage for the site's analytics report. The cookie stores information anonymously and assigns a randomly generated number to recognize unique visitors.
_gat_gtag_UA_147093399_1
1 minute
Set by Google to distinguish users.
_gcl_au
3 months
Provided by Google Tag Manager to experiment advertisement efficiency of websites using their services.
_gid
1 day
Installed by Google Analytics, _gid cookie stores information on how visitors use a website, while also creating an analytics report of the website's performance. Some of the data that are collected include the number of visitors, their source, and the pages they visit anonymously.
BAIDUID
1 year
Baidu installs this cookie to store analytical data like number of sessions, time spent on the page, bounce rate, the device used, etc.
utm_campaign
2 months
Google Ad Services sets this cookie to store session campaign value if present.
utm_content
2 months
This cookie is used for storing the session content value if present.
utm_source
2 months
This cookie is used to record from where the visitor came to the website orginally. This information is used by the website operator to know the efficiency of their marketing.
utm_term
2 months
This cookie is used to record from where the visitor came to the website orginally. This information is used by the website operator to know the efficiency of their marketing.
Other uncategorized cookies are those that are being analyzed and have not been classified into a category as yet.
Cookie
Duration
Description
AGL_USER_ID
7977 years 6 months 22 days 13 hours
No description available.
BIGipServersn-mch-v2-80
session
No description
BIGipServersn02web-nginx-app_https
session
No description
Hm_ck_1654686534484
session
No description
Hm_ck_1654686545903
session
No description
Hm_ck_1654686785317
session
No description
Hm_ck_1654686803939
session
No description
Hm_ck_1654686830687
session
No description
Hm_ck_1654686905307
session
No description
Hm_lpvt_08824d287f65a57bc02536f25f8be026
session
No description
Hm_lvt_08824d287f65a57bc02536f25f8be026
1 year
No description
HMACCOUNT
15 years 7 months 10 days 13 hours
This cookie is set by the provider Baidu. This cookie is used to send data about visitor device and behaviour to Baidu. It helps in tracking the visitor across devices.