std:: uses_allocator <std::promise>
From cppreference.net
C++
Concurrency support library
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
std::promise
| Member functions | ||||
| Getting the result | ||||
| Setting the result | ||||
| Non-member Functions | ||||
| Helper Classes | ||||
|
uses_allocator
<std::promise>
|
|
template
<
class
R,
class
Alloc
>
struct uses_allocator < std:: promise < R > , Alloc > : std:: true_type { } ; |
(начиная с C++11) | |
Предоставляет специализацию типажной характеристики std::uses_allocator для std::promise .
Содержание |
Наследуется от std:: integral_constant
Константы-члены
|
value
[static]
|
true
(public static member constant) |
Функции-члены
|
operator bool
|
преобразует объект в
bool
, возвращает
value
(public member function) |
|
operator()
(C++14)
|
возвращает
value
(public member function) |
Типы-члены
| Тип | Определение |
value_type
|
bool |
type
|
std:: integral_constant < bool , value > |
Смотрите также
|
(C++11)
|
проверяет, поддерживает ли указанный тип uses-allocator конструирование
(шаблон класса) |