Skip to content

Latest commit

 

History

History
45 lines (34 loc) · 1.23 KB

File metadata and controls

45 lines (34 loc) · 1.23 KB

uses_allocator

  • future[meta header]
  • std[meta namespace]
  • class template[meta id-type]
  • cpp11[meta cpp]
  • cpp20removed[meta cpp]
namespace std {
  template <class R, class Alloc>
  struct uses_allocator<packaged_task<R>, Alloc>
    : true_type { };
}
  • true_type[link /reference/type_traits/true_type.md]

packaged_taskのアロケータサポートはC++17で削除されたが、この特殊化はC++17の規格には残っていた。C++20で、取り残されていたこの特殊化も削除された。

概要

uses_allocatorの、packaged_task<R>に対する特殊化。

出力

バージョン

言語

  • C++11

処理系

参照