随笔分类 - C/C++
记录我在学习、开发 C/C++ 项目中的一些心得体会、踩坑教程
摘要:深入理解 C++ 构造函数的本质:从资源管理到性能优化。涵盖默认构造、拷贝构造、移动构造,以及 RAII、explicit、constexpr 等关键机制。
阅读全文
摘要:深入理解 C++ 中的 std::list 双向链表容器,探讨其底层原理、独有优势(如头部操作、接合等)、迭代器特性,以及与 std::vector 的选择权衡。
阅读全文
摘要:深入理解 C++ 中最常用的容器 std::vector:动态数组的核心特性、内存管理、扩容机制、迭代器失效问题,以及 reserve、emplace_back 等现代化最佳实践。特别提醒 std::vector
阅读全文
摘要:深入理解 C++ 标准库中的 std::string 类:从基本用法到底层原理,涵盖初始化、容量管理、元素访问、修改操作、类型转换等核心知识点,以及 SSO 优化、string_view 等现代特性和最佳实践。
阅读全文
摘要:
The core philosophy of modern CMake revolves around treating build scripts as code, shifting from outdated directory-level commands to a more maintainable and scalable target-centric paradigm based on targets and properties. In this model, developers define executables and libraries as self-contained targets using add_executable or add_library, and then precisely manage their build specifications and usage requirements through target_* commands with PRIVATE, PUBLIC, and INTERFACE keywords to con
阅读全文
The core philosophy of modern CMake revolves around treating build scripts as code, shifting from outdated directory-level commands to a more maintainable and scalable target-centric paradigm based on targets and properties. In this model, developers define executables and libraries as self-contained targets using add_executable or add_library, and then precisely manage their build specifications and usage requirements through target_* commands with PRIVATE, PUBLIC, and INTERFACE keywords to con
阅读全文
摘要:本文详细介绍了如何在 Ubuntu 16.04 上使用 CLion 开发 ROS Melodic 项目。
阅读全文

浙公网安备 33010602011771号