cppreference.com
创建账户
登录
名字空间
页面
讨论
变换
不转换
简体
繁體
大陆简体
香港繁體
澳門繁體
大马简体
新加坡简体
台灣正體
查看
查看
编辑
历史
操作
std::set<Key,Compare,Allocator>::
get_allocator
来自cppreference.com
<
cpp
|
container
|
set
[编辑模板]
C++
编译��支持
自立实现与有宿主实现
语言
标准库
标准库标头
具名要求
功能特性测试宏
(C++20)
语言支持库
概念库
(C++20)
诊断库
内存管理库
元编程库
(C++11)
通用工具库
容器库
迭代器库
范围库
(C++20)
算法库
字符串库
文本处理库
数值库
日期和时间库
输入/输出库
文件系统库
(C++17)
并发支持库
(C++11)
执行控制库
(C++26)
技术规范
符号索引
外部库
[编辑]
容器库
node-handle
(C++17)
序列容器
array
(C++11)
vector
vector
<bool>
inplace_vector
(C++26)
hive
(C++26)
deque
forward_list
(C++11)
list
关联容器
set
multiset
map
multimap
无序关联容器
unordered_set
(C++11)
unordered_multiset
(C++11)
unordered_map
(C++11)
unordered_multimap
(C++11)
容器适配器
stack
queue
priority_queue
flat_set
(C++23)
flat_multiset
(C++23)
flat_map
(C++23)
flat_multimap
(C++23)
视图
span
(C++20)
mdspan
(C++23)
表格
迭代器失效
成员函数表格
非成员函数表格
[编辑]
std::set
成员函数
set::set
set::~set
set::operator=
set::get_allocator
迭代器
set::begin
set::cbegin
(C++11)
set::end
set::cend
(C++11)
set::rbegin
set::crbegin
(C++11)
set::rend
set::crend
(C++11)
容量
set::size
set::max_size
set::empty
观察器
set::key_comp
set::value_comp
修改器
set::clear
set::erase
set::swap
set::extract
(C++17)
set::merge
(C++17)
set::insert
set::insert_range
(C++23)
set::emplace
(C++11)
set::emplace_hint
(C++11)
查找
set::count
set::find
set::contains
(C++20)
set::equal_range
set::lower_bound
set::upper_bound
非成员函数
operator==
operator<=>
(C++20)
std::swap
(std::set)
erase_if
(std::set)
(C++20)
operator!=
operator<
operator>
operator<=
operator>=
(C++20 前)
(C++20 前)
(C++20 前)
(C++20 前)
(C++20 前)
推导指引
(C++17)
[编辑]
allocator_type get_allocator
(
)
const
;
(C++11 起为 noexcept)
(C++26 起为 constexpr)
返回与容器关联的分配器。
[
编辑
]
返回值
关联的分配器。
[
编辑
]
复杂度
常数。