脱胎换骨的现代C++有哪些出奇的新特性?
<p style="margin-top: 0px; margin-bottom: 0px; padding: 0px 0px 15px; text-indent: 2em; color: rgb(51, 51, 51); font-family: &quot;Microsoft YaHei&quot;; font-size: 14px; white-space: normal; background-color: rgb(244, 244, 244);"><span style="line-height: 1.5;"><span style="color: rgb(51, 51, 51); font-family: &quot;Microsoft YaHei&quot;; font-size: 14px; text-indent: 28px; background-color: rgb(244, 244, 244);">从C++11开始,我们都称之为现代C++。 现代C++的新特性皆围绕C++之父Bjarne指明的两条主线: 一是直接硬件映射,二是零开销抽象。这也正好体现了C++的蜕变方向:更快、更好用。</span></span></p><p style="margin-top: 0px; margin-bottom: 0px; padding: 0px 0px 15px; text-indent: 2em; color: rgb(51, 51, 51); font-family: &quot;Microsoft YaHei&quot;; font-size: 14px; white-space: normal; background-color: rgb(244, 244, 244);">要聊现代C++,还得从C++的发展历程说起: ▪ 1998年,C++标准委员会发布了C++语言的第一个国际标准,也就是我们现在使用的最多的C++98;<br/>▪ 2003年,标准委员会针对98版本中存在的诸多问题进行了修订,修订后发布了C++03;<br/>▪ 2005年,C++标准委员会发布了一份技术报告,详细说明了引入C++新特性的计划。<br/>因为当时预计会在本世纪第一个十年的某个时间发布,这个新标准被非正式地命名为C++0x。<br/>但是,这个标准最终在2011年才面世,也就是C++11,此次标准为C++98发布后13年来的第一次重大修正;<br/>▪ 2014年,标准委员会公布了C++14标准;<br/>▪ 2017年,标准委员会计划即将公布的C++17标准。<br/>从C++11开始,我们都称之为现代C++。在C++通过演变来发展其定义的过程中,偶尔引发过与现有代码的兼容问题。 不过根据Bjarne Stroustrup表示,新的标准将几乎100%兼容于现有标准。</p><p style="margin-top: 0px; margin-bottom: 0px; padding: 0px 0px 15px; text-indent: 2em; color: rgb(51, 51, 51); font-family: &quot;Microsoft YaHei&quot;; font-size: 14px; white-space: normal; background-color: rgb(244, 244, 244);"><span style="line-height: 1.5;"><img src="http://localhost/js/ueditor/themes/default/images/spacer.gif" style="background:url(http://localhost/js/ueditor/lang/zh-cn/images/localimage.png) no-repeat center center;border:1px solid #ddd" word_img="file:///D:/YW/yanv/images/new_c++.png"/></span></p><p style="margin-top: 0px; margin-bottom: 0px; padding: 0px 0px 15px; text-indent: 2em; color: rgb(51, 51, 51); font-family: &quot;Microsoft YaHei&quot;; font-size: 14px; white-space: normal; background-color: rgb(244, 244, 244);"><span style="line-height: 1.5;">未完待续...</span></p><p><br/></p>

CopyRight 2020 All Right Reserved 济南金付宝数字科技有限公司 鲁ICP备17011712号

地址:       邮箱:wangbo@yanvn.cn