std::uses_allocator<std::packaged_task>
來自 cppreference.com
< cpp | thread | packaged_task
template< class R, class Alloc > struct uses_allocator<std::packaged_task<R>, Alloc> : true_type {}; |
(C++11 起) (在 C++17 中已移除) |
|
為 std::packaged_task 提供 std::uses_allocator 型別特性特化。
目錄 |
繼承自 std::integral_constant
成員常量
value [靜態] |
true (public static 成員常量) |
成員函式
operator bool |
將物件轉換為 bool,返回 value (公開成員函式) |
operator() (C++14) |
返回 value (公開成員函式) |
成員型別
型別 | 定義 |
value_type
|
bool |
型別
|
std::integral_constant<bool, value> |
[編輯] 參閱
(C++11) |
檢查指定型別是否支援 uses-allocator 構造 (類模板) |