Tag: C++

  • C++ 多线程改造参考 / Reconstructing C++ functions to multi-threaded

    本文为 2023-07-25 所做讲座的文稿,针对将 C++ 代码进行多线程改造的需求给出基础概念、相关技术和注意事项等,供参考。(注:文稿内容仅含概要,不做详细解释;文稿内容经过脱敏处理。) This post is the presented script of the lecture given on 2023-07-25, aiming at guiding the reconstruction of C++ functions to multi-threaded ones, containing the basic concepts, related techniques, and practical notes. (Note: The script only contains essentials, most of which are not explained in detail; the script has been…

  • C++ 代码格式化方案配置 / Configuring C++ code format

    为了在多人协同下保持 C++ 代码格式(特别是缩进)的统一,避免代码库提交历史中频繁出现无谓的格式变化而使有意义的修改难以追溯,在此给出在 IDE/代码编辑器中保持代码格式一致性的一种配置方案。 In order to maintain the consistency of C++ code format (esp. the indentation) during collaboration, and prevent the frequent meaningless format changes in a repository’s commit history, which may hinder the tracing (blaming) of the actual code changes, this post gives possible configuration for keeping the code format consistency among several…