随笔分类 -  C/C++

记录我在学习、开发 C/C++ 项目中的一些心得体会、踩坑教程
摘要:深入理解 C++ 构造函数的本质:从资源管理到性能优化。涵盖默认构造、拷贝构造、移动构造,以及 RAII、explicit、constexpr 等关键机制。 阅读全文
posted @ 2026-01-04 01:12 略无慕艳意 阅读(92) 评论(0) 推荐(0)
摘要:深入理解 C++ 中的 std::list 双向链表容器,探讨其底层原理、独有优势(如头部操作、接合等)、迭代器特性,以及与 std::vector 的选择权衡。 阅读全文
posted @ 2026-01-03 23:02 略无慕艳意 阅读(79) 评论(0) 推荐(0)
摘要:深入理解 C++ 中最常用的容器 std::vector:动态数组的核心特性、内存管理、扩容机制、迭代器失效问题,以及 reserve、emplace_back 等现代化最佳实践。特别提醒 std::vector 阅读全文
posted @ 2026-01-03 23:00 略无慕艳意 阅读(718) 评论(0) 推荐(3)
摘要:深入理解 C++ 标准库中的 std::string 类:从基本用法到底层原理,涵盖初始化、容量管理、元素访问、修改操作、类型转换等核心知识点,以及 SSO 优化、string_view 等现代特性和最佳实践。 阅读全文
posted @ 2026-01-03 17:29 略无慕艳意 阅读(51) 评论(0) 推荐(0)
摘要:Notes of Effective CMakeThe 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 阅读全文
posted @ 2025-08-08 23:17 略无慕艳意 阅读(58) 评论(1) 推荐(0)
摘要:本文详细介绍了如何在 Ubuntu 16.04 上使用 CLion 开发 ROS Melodic 项目。 阅读全文
posted @ 2025-05-24 13:50 略无慕艳意 阅读(124) 评论(0) 推荐(0)