{"id":13437781,"url":"https://github.com/CnTransGroup/EffectiveModernCppChinese","last_synced_at":"2025-03-19T18:30:49.709Z","repository":{"id":37745452,"uuid":"74014284","full_name":"CnTransGroup/EffectiveModernCppChinese","owner":"CnTransGroup","description":"《Effective Modern C++》- 完成翻译","archived":false,"fork":false,"pushed_at":"2024-10-21T11:09:56.000Z","size":34468,"stargazers_count":7781,"open_issues_count":17,"forks_count":1174,"subscribers_count":121,"default_branch":"master","last_synced_at":"2024-10-29T21:14:22.033Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://cntransgroup.github.io/EffectiveModernCppChinese/","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/CnTransGroup.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-11-17T10:03:07.000Z","updated_at":"2024-10-29T15:34:40.000Z","dependencies_parsed_at":"2024-05-28T22:04:39.033Z","dependency_job_id":"436877b4-47fd-46e5-92f7-c7277fbcf171","html_url":"https://github.com/CnTransGroup/EffectiveModernCppChinese","commit_stats":{"total_commits":420,"total_committers":73,"mean_commits":"5.7534246575342465","dds":0.6095238095238096,"last_synced_commit":"252b63a60eec87a96e04332989b9f7788aa19048"},"previous_names":["kelthuzadx/effectivemoderncppchinese","racaljk/effectivemoderncppchinese"],"tags_count":0,"template":true,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CnTransGroup%2FEffectiveModernCppChinese","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CnTransGroup%2FEffectiveModernCppChinese/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CnTransGroup%2FEffectiveModernCppChinese/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CnTransGroup%2FEffectiveModernCppChinese/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CnTransGroup","download_url":"https://codeload.github.com/CnTransGroup/EffectiveModernCppChinese/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240002230,"owners_count":19732165,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-07-31T03:01:00.181Z","updated_at":"2025-03-19T18:30:49.703Z","avatar_url":"https://github.com/CnTransGroup.png","language":null,"funding_links":[],"categories":["Others","C/C++ 程序设计","HarmonyOS"],"sub_categories":["网络服务_其他","Windows Manager"],"readme":"# 《Effective Modern C++ 》翻译\n\n\u003cimg src=\"public/1.png?raw=true\" align=\"right\" weight=\"300\" height=\"400\"/\u003e\n\n[![Backers on Open Collective](https://opencollective.com/EffectiveModernCppChinese/backers/badge.svg)](#backers)\n [![Sponsors on Open Collective](https://opencollective.com/EffectiveModernCppChinese/sponsors/badge.svg)](#sponsors)\n\n\u003e + 标注“已修订”的章节表示已经没有大致的错误\n\u003e + 本书要求读者具有C++基础\n\u003e + [PDF格式英文版下载](public/EffectiveModernCpp.pdf),仅供翻译参考\n\u003e + **[在线浏览(推荐)](https://cntransgroup.github.io/EffectiveModernCppChinese)**\n\n## 目录\n0. [__简介__](src/Introduction.md)\n1. __类型推导__\n\t1. [Item 1:理解模板类型推导](src/1.DeducingTypes/item1.md) 已修订\n\t2. [Item 2:理解auto类型推导](src/1.DeducingTypes/item2.md)\n\t3. [Item 3:理解decltype](src/1.DeducingTypes/item3.md)\n\t4. [Item 4:学会查看类型推导结果](src/1.DeducingTypes/item4.md)\n2. __auto__\n\t1. [Item 5:优先考虑auto而非显式类型声明](src/2.Auto/item5.md)\n\t2. [Item 6:auto推导若非己愿，使用显式类型初始化惯用法](src/2.Auto/item6.md)\n3. __移步现代C++__\n\t1. [Item 7:区别使用()和{}创建对象](src/3.MovingToModernCpp/item7.md) 已修订\n\t2. [Item 8:优先考虑nullptr而非0和NULL](src/3.MovingToModernCpp/item8.md)\n\t3. [Item 9:优先考虑别名声明而非typedefs](src/3.MovingToModernCpp/item9.md)\n\t4. [Item 10:优先考虑限域枚举而非未限域枚举](src/3.MovingToModernCpp/item10.md) 已修订\n\t5. [Item 11:优先考虑使用deleted函数而非使用未定义的私有声明](src/3.MovingToModernCpp/item11.md)\n\t6. [Item 12:使用override声明重写函数](src/3.MovingToModernCpp/item12.md)\n\t7. [Item 13:优先考虑const_iterator而非iterator](src/3.MovingToModernCpp/item13.md)\n\t8. [Item 14:如果函数不抛出异常请使用noexcept](src/3.MovingToModernCpp/item14.md)\n\t9. [Item 15:尽可能的使用constexpr](src/3.MovingToModernCpp/item15.md)\n\t10. [Item 16:让const成员函数线程安全](src/3.MovingToModernCpp/item16.md)\n\t11. [Item 17:理解特殊成员函数的生成](src/3.MovingToModernCpp/item17.md)\n4. __智能指针__\n\t1. [Item 18:对于独占资源使用std::unique_ptr](src/4.SmartPointers/item18.md)\n\t2. [Item 19:对于共享资源使用std::shared_ptr](src/4.SmartPointers/item19.md) 已修订\n\t3. [Item 20:当std::shared_ptr可能悬空时使用std::weak_ptr](src/4.SmartPointers/item20.md)\n\t4. [Item 21:优先考虑使用std::make_unique和std::make_shared，而非直接使用new](src/4.SmartPointers/item21.md)\n\t5. [Item 22:当使用Pimpl惯用法，请在实现文件中定义特殊成员函数](src/4.SmartPointers/item22.md)\n5. __右值引用，移动语义，完美转发__\n\t1. [Item 23:理解std::move和std::forward](src/5.RRefMovSemPerfForw/item23.md)\n\t2. [Item 24:区别通用引用和右值引用](src/5.RRefMovSemPerfForw/item24.md)\n\t3. [Item 25:对于右值引用使用std::move，对于通用引用使用std::forward](src/5.RRefMovSemPerfForw/item25.md)\n\t4. [Item 26:避免重载通用引用](src/5.RRefMovSemPerfForw/item26.md)\n\t5. [Item 27:熟悉重载通用引用的替代品](src/5.RRefMovSemPerfForw/item27.md)\n\t6. [Item 28:理解引用折叠](src/5.RRefMovSemPerfForw/item28.md)\n\t7. [Item 29:认识移动操作的缺点](src/5.RRefMovSemPerfForw/item29.md)\n\t8. [Item 30:熟悉完美转发失败的情况](src/5.RRefMovSemPerfForw/item30.md)\n6. __Lambda表达式__\n\t1. [Item 31:避免使用默认捕获模式](src/6.LambdaExpressions/item31.md)\n\t2. [Item 32:使用初始化捕获来移动对象到闭包中](src/6.LambdaExpressions/item32.md)\n\t3. [Item 33:对于std::forward的auto\u0026\u0026形参使用decltype](src/6.LambdaExpressions/item33.md)\n\t4. [Item 34:优先考虑lambda表达式而非std::bind](src/6.LambdaExpressions/item34.md)\n7. __并发API__\n\t1. [Item 35:优先考虑基于任务的编程而非基于线程的编程](src/7.TheConcurrencyAPI/Item35.md)\n\t2. [Item 36:如果有异步的必要请指定std::launch::async](src/7.TheConcurrencyAPI/item36.md)\n\t3. [Item 37:从各个方面使得std::threads unjoinable](src/7.TheConcurrencyAPI/item37.md)\n\t4. [Item 38:关注不同线程句柄析构行为](src/7.TheConcurrencyAPI/item38.md)\n\t5. [Item 39:考虑对于单次事件通信使用void](src/7.TheConcurrencyAPI/item39.md)\n\t6. [Item 40:对于并发使用std::atomic，volatile用于特殊内存区](src/7.TheConcurrencyAPI/item40.md)\n8. __微调__\n\t1. [Item 41:对于那些可移动总是被拷贝的形参使用传值方式](src/8.Tweaks/item41.md)\n\t2. [Item 42:考虑就地创建而非插入](src/8.Tweaks/item42.md)\n\n## 其他资源\n+ **[在线阅读(推荐，与翻译内容同步更新)](https://cntransgroup.github.io/EffectiveModernCppChinese)**\n+ 本书[PDF格式的中文版](./public/translated/translate-zh-combine.pdf)见于此，该版本通常同步或者滞后于当前Markdown文档\n+ [Effective C++ Xmind Doc](./public/EffectModernC++.xmind)\n\n## 贡献者\n\n感谢所有参与翻译/勘误/建议的贡献者们~\n\u003ca href=\"https://github.com/kelthuzadx/EffectiveModernCppChinese/graphs/contributors\"\u003e\u003cimg src=\"https://opencollective.com/EffectiveModernCppChinese/contributors.svg?width=890\u0026button=false\" /\u003e\u003c/a\u003e\n\n## 免责声明\n译者纯粹出于学习目的与个人兴趣翻译本书，不追求任何经济利益。译者保留对此版本译文的署名权，其他权利以原作者和出版社的主张为准。本译文只供学习研究参考之用，不得公开传播发行或用于商业用途。有能力阅读英文书籍者请购买正版支持。\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FCnTransGroup%2FEffectiveModernCppChinese","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FCnTransGroup%2FEffectiveModernCppChinese","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FCnTransGroup%2FEffectiveModernCppChinese/lists"}