摘要:
深入理解 C++ 中最常用的容器 std::vector:动态数组的核心特性、内存管理、扩容机制、迭代器失效问题,以及 reserve、emplace_back 等现代化最佳实践。特别提醒 std::vector 阅读全文
posted @ 2026-01-03 23:00
略无慕艳意
阅读(741)
评论(0)
推荐(3)
摘要:
深入理解 C++ 标准库中的 std::string 类:从基本用法到底层原理,涵盖初始化、容量管理、元素访问、修改操作、类型转换等核心知识点,以及 SSO 优化、string_view 等现代特性和最佳实践。 阅读全文
posted @ 2026-01-03 17:29
略无慕艳意
阅读(69)
评论(0)
推荐(0)

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
浙公网安备 33010602011771号