modbus软件开发实战指南_C++核心准则?GSL:指南支持库
GSL: Guidelines support library
GSL:指南支持庫(kù)
The GSL is a small library of facilities designed to support this set of guidelines. Without these facilities, the guidelines would have to be far more restrictive on language details.
GSL是旨在支持這套準(zhǔn)則的小型功能庫(kù)。如果沒(méi)有這些功能,本指南將不得不對(duì)語(yǔ)言細(xì)節(jié)進(jìn)行更多的限制。
The Core Guidelines support library is defined in namespace gsl and the names might be aliases for standard library or other well-known library names. Using the (compile-time) indirection through the gsl namespace allows for experimentation and for local variants of the support facilities.
核心準(zhǔn)則支持庫(kù)在名稱(chēng)空間gsl中定義,并且名稱(chēng)可能是標(biāo)準(zhǔn)庫(kù)或其他知名庫(kù)名稱(chēng)的別名。通過(guò)gsl命名空間使用(編譯時(shí))間接方式可以進(jìn)行試驗(yàn),并可以使用所支持功能的本地變體。
The GSL is header only, and can be found at GSL: Guidelines support library. The support library facilities are designed to be extremely lightweight (zero-overhead) so that they impose no overhead compared to using conventional alternatives. Where desirable, they can be "instrumented" with additional functionality (e.g., checks) for tasks such as debugging.
GSL只包含頭文件,可以在GSL:準(zhǔn)則支持庫(kù)中(https://github.com/Microsoft/GSL)找到。支持庫(kù)的功能設(shè)計(jì)非常輕巧(零開(kāi)銷(xiāo)),因此與使用常規(guī)替代方法相比,它們沒(méi)有任何開(kāi)銷(xiāo)。如果需要,可以將它們與其他功能(例如檢查)“結(jié)合在一起”,以進(jìn)行調(diào)試等任務(wù)。
These Guidelines use types from the standard (e.g., C++17) in addition to ones from the GSL. For example, we assume a variant type, but this is not currently in GSL. Eventually, use the one voted into C++17.
除了來(lái)自GSL的類(lèi)型外,這些準(zhǔn)則還使用標(biāo)準(zhǔn)(例如C ++ 17)中的類(lèi)型。例如,我們假設(shè)一個(gè)變體類(lèi)型,但這在GSL中當(dāng)前不存在。最終,使用投票決定加入C ++ 17的那個(gè)。
Some of the GSL types listed below might not be supported in the library you use due to technical reasons such as limitations in the current versions of C++. Therefore, please consult your GSL documentation to find out more.
由于技術(shù)原因(例如當(dāng)前C ++版本的限制),您使用的庫(kù)中可能不支持下面列出的某些GSL類(lèi)型。因此,請(qǐng)查閱您的GSL文檔以了解更多信息。
Summary of GSL components(GSL組件摘要:):
- GSL.view: ViewsGSL.view:視圖
- GSL.ownerGSL所有者
- GSL.assert: AssertionsGSL.assert:斷言
- GSL.util: UtilitiesGSL.util:實(shí)用程序
- GSL.concept: ConceptsGSL.concept:概念
We plan for a "ISO C++ standard style" semi-formal specification of the GSL.
我們計(jì)劃制定GSL的“ ISO C ++標(biāo)準(zhǔn)樣式”半正式規(guī)范。
We rely on the ISO C++ Standard Library and hope for parts of the GSL to be absorbed into the standard library.
我們依靠ISO C ++標(biāo)準(zhǔn)庫(kù),希望將GSL的某些部分吸收到標(biāo)準(zhǔn)庫(kù)中。
原文鏈接
https://github.com/isocpp/CppCoreGuidelines/blob/master/CppCoreGuidelines.md#gsl-guidelines-support-library
新書(shū)介紹
《實(shí)戰(zhàn)Python設(shè)計(jì)模式》是作者最近出版的新書(shū),拜托多多關(guān)注!
本書(shū)利用Python 的標(biāo)準(zhǔn)GUI 工具包tkinter,通過(guò)可執(zhí)行的示例對(duì)23 個(gè)設(shè)計(jì)模式逐個(gè)進(jìn)行說(shuō)明。這樣一方面可以使讀者了解真實(shí)的軟件開(kāi)發(fā)工作中每個(gè)設(shè)計(jì)模式的運(yùn)用場(chǎng)景和想要解決的問(wèn)題;另一方面通過(guò)對(duì)這些問(wèn)題的解決過(guò)程進(jìn)行說(shuō)明,讓讀者明白在編寫(xiě)代碼時(shí)如何判斷使用設(shè)計(jì)模式的利弊,并合理運(yùn)用設(shè)計(jì)模式。
對(duì)設(shè)計(jì)模式感興趣而且希望隨學(xué)隨用的讀者通過(guò)本書(shū)可以快速跨越從理解到運(yùn)用的門(mén)檻;希望學(xué)習(xí)Python GUI 編程的讀者可以將本書(shū)中的示例作為設(shè)計(jì)和開(kāi)發(fā)的參考;使用Python 語(yǔ)言進(jìn)行圖像分析、數(shù)據(jù)處理工作的讀者可以直接以本書(shū)中的示例為基礎(chǔ),迅速構(gòu)建自己的系統(tǒng)架構(gòu)。
覺(jué)得本文有幫助?請(qǐng)分享給更多人。
關(guān)注微信公眾號(hào)【面向?qū)ο笏伎肌枯p松學(xué)習(xí)每一天!
面向?qū)ο箝_(kāi)發(fā),面向?qū)ο笏伎?#xff01;
總結(jié)
以上是生活随笔為你收集整理的modbus软件开发实战指南_C++核心准则?GSL:指南支持库的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: 微软调整 Win12 升级门槛:处理器和
- 下一篇: 推特企业“金V”认证免费时代即将结束 费