最終更新日時(UTC): 2024年06月11日 13時45分38秒 Akira Takahashi が更新
履歴 編集
allocator_type get_allocator() const;
格納されているアロケータ(元のコンテナのアロケータ)のコピーを返す。
empty() == false
*alloc_
投げない。
#include <set> int main() { std::set s = { 1, 2, 3 }; auto nh = s.extract(s.begin()); [[maybe_unused]] auto alloc = nh.get_allocator(); }