std::vector<T,Allocator>::get_allocator
来自cppreference.com
容器库
std::vector
allocator_type get_allocator()const; | (C++11 起为 noexcept) (C++20 起为 constexpr ) | |
返回与容器关联的分配器。
[编辑]返回值
关联的分配器。
[编辑]复杂度
常数。
allocator_type get_allocator()const; | (C++11 起为 noexcept) (C++20 起为 constexpr ) | |
返回与容器关联的分配器。
关联的分配器。
常数。