标签:关联容器

共 2 篇文章

C++ std::shared_ptr的owner_before在弱排序中的使用

C++ std::sharedptr的ownerbefore在弱排序中的使用 C++ 标准库中的智能指针 std::sharedptr 提供了自动内存管理功能,但在将其作为关联容器

# C++ # 智能指针 # 弱排序
2026-04-26 145 0

C++ STL 容器:vector、map、set 的基本操作

1. 引入标准库头文件 include <vector 与 include <iostream,启用动态数组与基础输入输出功能。 2. 声明容器实例 vector<int data

# C++编程 # STL容器 # 动态数组
2026-04-07 211 0