名前空間
変種
操作

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

提供: cppreference.com
< cpp‎ | container‎ | vector
 
 
 
 
allocator_type get_allocator() const;
(C++11未満)
allocator_type get_allocator() const noexcept;
(C++11以上)
(C++20未満)
constexpr allocator_type get_allocator() const noexcept;
(C++20以上)

コンテナに関連付けられているアロケータを返します。

[編集] 引数

(なし)

[編集] 戻り値

関連付けられているアロケータ。

[編集] 計算量

一定。