命名空间
变体
操作

std::vector<T,Allocator>::get_allocator

来自 cppreference.cn
< cpp‎ | 容器‎ | vector
 
 
 
 
allocator_type get_allocator() const;
(自 C++11 起 noexcept)
(自 C++20 起 constexpr)

返回与容器关联的分配器。

[edit] 参数

(无)

[edit] 返回值

关联的分配器。

[edit] 复杂度

常数。