avatar
文章
16
标签
9
分类
8

Home
Archives
Tags
Categories
bhhxx's blog
Home
Archives
Tags
Categories

STL常用命令自查

发表于2025-04-25|更新于2025-04-28|笔记类
|阅读量:

std::unordered_set

https://zh.cppreference.com/w/cpp/container/unordered_set

1
2
3
#include <unordered_set>
std::pair<iterator, bool> insert(T); // 插入元素 成功则返回 true 如果已存在则返回false
iterator find(T); // 找到返回 iter 找不到返回 end迭代器

std::unordered_map

https://zh.cppreference.com/w/cpp/container/unordered_map

1
2
#include <unordered_map>

算法库

1
2
#include <algorithm>

文章作者: bhhxx
文章链接: https://bhhxx.github.io/2025/04/25/STL-常用命令/
版权声明: 本博客所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议。转载请注明来自 bhhxx's blog!
C++
上一篇
设计模式
下一篇
C++Primer笔记
相关推荐
2025-04-23
C++Primer笔记
avatar
bhhxx
Learn what you love, love what you learn
文章
16
标签
9
分类
8
Follow Me
公告
Enthusiasm is all you need.
目录
  1. 1. std::unordered_set
  2. 2. std::unordered_map
  3. 3. 算法库
最新文章
xv6-lab4-traps2025-05-24
xv6-lab2:系统调用2025-05-12
常用软件2025-05-02
电机控制2025-04-30
OSTEP虚拟化内存2025-04-27
©2024 - 2025 By bhhxx
框架 Hexo|主题 Butterfly