摘要: 深入理解 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)
摘要: This message is used to verify that this feed (feedId:177737899331668992) belongs to me (userId:86274747203398656). Join me in enjoying the next gener 阅读全文
posted @ 2025-08-11 22:32 略无慕艳意 阅读(19) 评论(0) 推荐(0)
摘要: Notes of Effective CMake 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 阅读全文
posted @ 2025-08-08 23:17 略无慕艳意 阅读(64) 评论(1) 推荐(0)
摘要: 本文是 Visual Studio 2022 的入门指南,主要介绍了解决方案与项目的组织结构、过滤器的使用、包含目录的配置、宏的使用方法,以及静态库和动态链接库的创建与使用。此外,还介绍了如何使用 CMake 自动生成解决方案。 阅读全文
posted @ 2025-07-30 01:50 略无慕艳意 阅读(795) 评论(0) 推荐(3)