CppPatterns-Patterns:社区策划的现代C ++模式库

上传者: 42116604 | 上传时间: 2022-06-07 15:50:04 | 文件大小: 54KB | 文件类型: ZIP
C++
C ++模式-模式 是代码模式的存储库,它说明了一种现代且惯用的编写C ++的方法。 目的是为中级C ++开发人员提供初学者参考,以解决C ++中的常见问题。 自从C ++ 11发布以来,随着C ++语言和库的发展(它们自始至终都在Swift发展),这些模式将得到更新,以适应惯用C ++开发中的最新技术。 该存储库包含模式本身的源,在构建C ++模式Web前端时将使用该源。 有关前端源,请参阅 。 贡献 要贡献新模式或编辑现有模式,请派生此存储库并提交请求以进行更改。 请先阅读以下准则,然后再进行贡献。 待办事项清单 有关示例想法,请参见以获取建议。 如果您不想自己编写模式,请随时在此页面中添加建议。 指导方针 是什么使一个好的模式? 一个好的模式: 仅使用现代C ++语言和标准库功能。 是通用的,因此广泛适用。 对于C ++初学者来说是可以理解的。 充当学习C ++功能的起点

文件下载

资源详情

[{"title":"( 52 个子文件 54KB ) CppPatterns-Patterns:社区策划的现代C ++模式库","children":[{"title":"CppPatterns-Patterns-master","children":[{"title":"contents.yml <span style='color:#111;'> 2.56KB </span>","children":null,"spread":false},{"title":"LICENSE.txt <span style='color:#111;'> 6.88KB </span>","children":null,"spread":false},{"title":"README.md <span style='color:#111;'> 5.75KB </span>","children":null,"spread":false},{"title":"CONTRIBUTORS.txt <span style='color:#111;'> 740B </span>","children":null,"spread":false},{"title":"patterns","children":[{"title":"structural","children":[{"title":"decorator.cpp <span style='color:#111;'> 1.26KB </span>","children":null,"spread":false}],"spread":true},{"title":"creational","children":[{"title":"builder.cpp <span style='color:#111;'> 1.77KB </span>","children":null,"spread":false}],"spread":true},{"title":"behavioral","children":[{"title":"visitor.cpp <span style='color:#111;'> 2.21KB </span>","children":null,"spread":false},{"title":"observer.cpp <span style='color:#111;'> 1.50KB </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"common-tasks","children":[{"title":"classes","children":[{"title":"lexicographic-ordering.cpp <span style='color:#111;'> 1.41KB </span>","children":null,"spread":false},{"title":"non-member-interfaces.cpp <span style='color:#111;'> 1.22KB </span>","children":null,"spread":false},{"title":"rule-of-five.cpp <span style='color:#111;'> 2.80KB </span>","children":null,"spread":false},{"title":"copy-and-swap.cpp <span style='color:#111;'> 2.55KB </span>","children":null,"spread":false},{"title":"rule-of-zero.cpp <span style='color:#111;'> 1.32KB </span>","children":null,"spread":false},{"title":"delegate-behavior-to-derived-classes.cpp <span style='color:#111;'> 2.44KB </span>","children":null,"spread":false},{"title":"virtual-constructor.cpp <span style='color:#111;'> 2.03KB </span>","children":null,"spread":false},{"title":"pimpl.cpp <span style='color:#111;'> 2.28KB </span>","children":null,"spread":false}],"spread":true},{"title":"ranges","children":[{"title":"range-iteration.cpp <span style='color:#111;'> 1.09KB </span>","children":null,"spread":false},{"title":"range-based-algorithms.cpp <span style='color:#111;'> 2.32KB </span>","children":null,"spread":false}],"spread":true},{"title":"functions","children":[{"title":"return-multiple-values.c++11.cpp <span style='color:#111;'> 1.13KB </span>","children":null,"spread":false},{"title":"optional-arguments.cpp <span style='color:#111;'> 1.02KB </span>","children":null,"spread":false},{"title":"apply-tuple-to-function.cpp <span style='color:#111;'> 1.93KB </span>","children":null,"spread":false},{"title":"return-multiple-values.c++17.cpp <span style='color:#111;'> 948B </span>","children":null,"spread":false},{"title":"pass-arrays.cpp <span style='color:#111;'> 1.68KB </span>","children":null,"spread":false}],"spread":true},{"title":"time","children":[{"title":"fixed-time-step.cpp <span style='color:#111;'> 1.75KB </span>","children":null,"spread":false},{"title":"measure-execution-time.cpp <span style='color:#111;'> 1.38KB </span>","children":null,"spread":false},{"title":"sleep.cpp <span style='color:#111;'> 941B </span>","children":null,"spread":false}],"spread":true},{"title":"templates","children":[{"title":"function-template-sfinae.cpp <span style='color:#111;'> 1.67KB </span>","children":null,"spread":false},{"title":"class-template-sfinae.cpp <span style='color:#111;'> 1.47KB </span>","children":null,"spread":false},{"title":"perfect-forwarding.cpp <span style='color:#111;'> 1.46KB </span>","children":null,"spread":false}],"spread":true},{"title":"input-streams","children":[{"title":"validate-multiple-reads.cpp <span style='color:#111;'> 1.46KB </span>","children":null,"spread":false},{"title":"read-line-of-values.cpp <span style='color:#111;'> 1.35KB </span>","children":null,"spread":false},{"title":"read-line-by-line.cpp <span style='color:#111;'> 1.04KB </span>","children":null,"spread":false}],"spread":true},{"title":"memory-management","children":[{"title":"unique-ownership.cpp <span style='color:#111;'> 1.24KB </span>","children":null,"spread":false},{"title":"weak-reference.cpp <span style='color:#111;'> 2.18KB </span>","children":null,"spread":false},{"title":"use-raii-types.cpp <span style='color:#111;'> 1.12KB </span>","children":null,"spread":false},{"title":"shared-ownership.cpp <span style='color:#111;'> 923B </span>","children":null,"spread":false}],"spread":true},{"title":"output-streams","children":[{"title":"write-data-in-columns.cpp <span style='color:#111;'> 926B </span>","children":null,"spread":false},{"title":"overload-insertion-operation.cpp <span style='color:#111;'> 965B </span>","children":null,"spread":false}],"spread":false},{"title":"containers","children":[{"title":"remove-elements-from-container.cpp <span style='color:#111;'> 1.75KB </span>","children":null,"spread":false},{"title":"check-existence-of-key.cpp <span style='color:#111;'> 861B </span>","children":null,"spread":false}],"spread":false},{"title":"algorithms","children":[{"title":"swap-values.cpp <span style='color:#111;'> 984B </span>","children":null,"spread":false},{"title":"sort-range-of-elements.cpp <span style='color:#111;'> 1.15KB </span>","children":null,"spread":false},{"title":"count-values-in-range.cpp <span style='color:#111;'> 1021B </span>","children":null,"spread":false},{"title":"swap-containers.cpp <span style='color:#111;'> 1.46KB </span>","children":null,"spread":false},{"title":"copy-range-of-elements.cpp <span style='color:#111;'> 1.83KB </span>","children":null,"spread":false}],"spread":false},{"title":"concurrency","children":[{"title":"create-thread.cpp <span style='color:#111;'> 1.78KB </span>","children":null,"spread":false},{"title":"pass-values-between-threads.cpp <span style='color:#111;'> 1.24KB </span>","children":null,"spread":false},{"title":"execute-task-asynchronously.cpp <span style='color:#111;'> 1.61KB </span>","children":null,"spread":false}],"spread":false},{"title":"random","children":[{"title":"flip-a-biased-coin.cpp <span style='color:#111;'> 1.29KB </span>","children":null,"spread":false},{"title":"roll-a-die.cpp <span style='color:#111;'> 1.35KB </span>","children":null,"spread":false},{"title":"unpredictable-random-numbers.cpp <span style='color:#111;'> 1.68KB </span>","children":null,"spread":false},{"title":"choose-random-element.cpp <span style='color:#111;'> 1.00KB </span>","children":null,"spread":false}],"spread":false}],"spread":false}],"spread":true}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明