<kbd id="afajh"><form id="afajh"></form></kbd>
<strong id="afajh"><dl id="afajh"></dl></strong>
    <del id="afajh"><form id="afajh"></form></del>
        1. <th id="afajh"><progress id="afajh"></progress></th>
          <b id="afajh"><abbr id="afajh"></abbr></b>
          <th id="afajh"><progress id="afajh"></progress></th>

          C++核心準則?GSL:指南支持庫

          共 2768字,需瀏覽 6分鐘

           ·

          2020-11-13 10:39

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

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

          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: Views

            GSL.view:視圖

          • GSL.owner

            GSL所有者

          • GSL.assert: Assertions

            GSL.assert:斷言

          • GSL.util: Utilities

            GSL.util:實用程序

          • GSL.concept: Concepts

            GSL.concept:概念

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

          我們計劃制定GSL的“ ISO C ++標準樣式”半正式規(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 ++標準庫,希望將GSL的某些部分吸收到標準庫中。


          原文鏈接

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


          新書介紹

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

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

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




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

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

          面向對象開發(fā),面向對象思考!



          瀏覽 62
          點贊
          評論
          收藏
          分享

          手機掃一掃分享

          分享
          舉報
          評論
          圖片
          表情
          推薦
          點贊
          評論
          收藏
          分享

          手機掃一掃分享

          分享
          舉報
          <kbd id="afajh"><form id="afajh"></form></kbd>
          <strong id="afajh"><dl id="afajh"></dl></strong>
            <del id="afajh"><form id="afajh"></form></del>
                1. <th id="afajh"><progress id="afajh"></progress></th>
                  <b id="afajh"><abbr id="afajh"></abbr></b>
                  <th id="afajh"><progress id="afajh"></progress></th>
                  激情小说激情视频 | 婷婷久久免费视频 | 淫欲无码 | 91精品久久久久久久久久 | 无码一区二区三区在线观看 |