日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程语言 > c/c++ >内容正文

c/c++

modbus软件开发实战指南_C++核心准则?GSL:指南支持库

發布時間:2023/12/19 c/c++ 21 豆豆
生活随笔 收集整理的這篇文章主要介紹了 modbus软件开发实战指南_C++核心准则?GSL:指南支持库 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

GSL: Guidelines support library

GSL:指南支持庫

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是旨在支持這套準則的小型功能庫。如果沒有這些功能,本指南將不得不對語言細節進行更多的限制。

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.

核心準則支持庫在名稱空間gsl中定義,并且名稱可能是標準庫或其他知名庫名稱的別名。通過gsl命名空間使用(編譯時)間接方式可以進行試驗,并可以使用所支持功能的本地變體。

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:準則支持庫中(https://github.com/Microsoft/GSL)找到。支持庫的功能設計非常輕巧(零開銷),因此與使用常規替代方法相比,它們沒有任何開銷。如果需要,可以將它們與其他功能(例如檢查)“結合在一起”,以進行調試等任務。

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.

除了來自GSL的類型外,這些準則還使用標準(例如C ++ 17)中的類型。例如,我們假設一個變體類型,但這在GSL中當前不存在。最終,使用投票決定加入C ++ 17的那個。

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.

由于技術原因(例如當前C ++版本的限制),您使用的庫中可能不支持下面列出的某些GSL類型。因此,請查閱您的GSL文檔以了解更多信息。

Summary of GSL components(GSL組件摘要:):

  • GSL.view: ViewsGSL.view:視圖
  • GSL.ownerGSL所有者
  • GSL.assert: AssertionsGSL.assert:斷言
  • GSL.util: UtilitiesGSL.util:實用程序
  • GSL.concept: ConceptsGSL.concept:概念

We plan for a "ISO C++ standard style" semi-formal specification of the GSL.

我們計劃制定GSL的“ ISO C ++標準樣式”半正式規范。

We rely on the ISO C++ Standard Library and hope for parts of the GSL to be absorbed into the standard library.

我們依靠ISO C ++標準庫,希望將GSL的某些部分吸收到標準庫中。

原文鏈接

https://github.com/isocpp/CppCoreGuidelines/blob/master/CppCoreGuidelines.md#gsl-guidelines-support-library

新書介紹

《實戰Python設計模式》是作者最近出版的新書,拜托多多關注!

本書利用Python 的標準GUI 工具包tkinter,通過可執行的示例對23 個設計模式逐個進行說明。這樣一方面可以使讀者了解真實的軟件開發工作中每個設計模式的運用場景和想要解決的問題;另一方面通過對這些問題的解決過程進行說明,讓讀者明白在編寫代碼時如何判斷使用設計模式的利弊,并合理運用設計模式。

對設計模式感興趣而且希望隨學隨用的讀者通過本書可以快速跨越從理解到運用的門檻;希望學習Python GUI 編程的讀者可以將本書中的示例作為設計和開發的參考;使用Python 語言進行圖像分析、數據處理工作的讀者可以直接以本書中的示例為基礎,迅速構建自己的系統架構。


覺得本文有幫助?請分享給更多人。

關注微信公眾號【面向對象思考】輕松學習每一天!

面向對象開發,面向對象思考!

總結

以上是生活随笔為你收集整理的modbus软件开发实战指南_C++核心准则?GSL:指南支持库的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。