标准库容器集合setget_allocator本页内容 std::set get_allocator() 方法 自 C++11 起直到 C++11// Const version onlyallocator_type get_allocator() const noexcept;// Const version onlyallocator_type get_allocator() const; 返回与容器关联的分配器。 参数 (无) 返回值 关联的分配器。 复杂度 常数 - O(1)。 异常 (无)本文源自此 CppReference 页面。它可能已被修改以进行改进或满足编辑偏好。点击“编辑此页面”查看本文档的所有更改。悬停查看原始许可证。
标准库容器集合setget_allocator本页内容 std::set get_allocator() 方法 自 C++11 起直到 C++11// Const version onlyallocator_type get_allocator() const noexcept;// Const version onlyallocator_type get_allocator() const; 返回与容器关联的分配器。 参数 (无) 返回值 关联的分配器。 复杂度 常数 - O(1)。 异常 (无)本文源自此 CppReference 页面。它可能已被修改以进行改进或满足编辑偏好。点击“编辑此页面”查看本文档的所有更改。悬停查看原始许可证。