◐ Shell
clean mode source ↗

std::vector<T,Allocator>::get_allocator - cppreference.com

[edit template]

std::vector

メンバ関数
要素アクセス
イテレータ
容量
変更
非メンバ関数

(C++20)(C++20)

(C++20未満)(C++20未満)(C++20未満)(C++20未満)(C++20未満)(C++20)

推定ガイド(C++17)

<tbody> </tbody> <tbody class="t-dcl-rev "> </tbody><tbody> </tbody>

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以上)

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

引数

(なし)

戻り値

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

計算量

一定。