C++核心准则​GSL:指南支持库

网友投稿 299 2022-12-02

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:准则支持库中(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的某些部分吸收到标准库中。

原文链接

​​的标准GUI 工具包tkinter,通过可执行的示例对23 个设计模式逐个进行说明。这样一方面可以使读者了解真实的软件开发工作中每个设计模式的运用场景和想要解决的问题;另一方面通过对这些问题的解决过程进行说明,让读者明白在编写代码时如何判断使用设计模式的利弊,并合理运用设计模式。

对设计模式感兴趣而且希望随学随用的读者通过本书可以快速跨越从理解到运用的门槛;希望学习Python GUI 编程的读者可以将本书中的示例作为设计和开发的参考;使用Python 语言进行图像分析、数据处理工作的读者可以直接以本书中的示例为基础,迅速构建自己的系统架构。

觉得本文有帮助?请分享给更多人。

面向对象开发,面向对象思考!

版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。

上一篇:使用maven创建普通项目命令行程序详解
下一篇:C++核心准则​讨论:按照成员声明的顺序定义和初始化成员变量
相关文章

 发表评论

暂时没有评论,来抢沙发吧~