跳到主要内容

std::forward_list get_allocator() 方法

// Const version only
allocator_type get_allocator() const noexcept;

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

参数

(无)

返回值

关联的分配器。

复杂度

常数 - O(1)

本文来源于 此 CppReference 页面。为了改进或编辑者的偏好,它可能已被修改。点击“编辑此页面”查看对本文档的所有更改。
悬停查看原始许可证。

std::forward_list get_allocator() 方法

// Const version only
allocator_type get_allocator() const noexcept;

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

参数

(无)

返回值

关联的分配器。

复杂度

常数 - O(1)

本文来源于 此 CppReference 页面。为了改进或编辑者的偏好,它可能已被修改。点击“编辑此页面”查看对本文档的所有更改。
悬停查看原始许可证。