Difference between revisions of "cpp/experimental/lib extensions/promise/uses allocator"
From cppreference.com
< cpp | experimental | lib extensions | promise
(create) |
m (link to zh) |
||
Line 18: | Line 18: | ||
{{dsc inc | cpp/memory/dsc uses_allocator}} | {{dsc inc | cpp/memory/dsc uses_allocator}} | ||
{{dsc end}} | {{dsc end}} | ||
+ | |||
+ |
Revision as of 18:53, 29 January 2018
Defined in header <experimental/future>
|
||
template< class R, class Alloc > struct uses_allocator<std::experimental::promise<R>, Alloc> |
(library fundamentals TS) | |
This specialization of std::uses_allocator informs other library components that all objects of type std::experimental::promise support uses-allocator construction.
Contents |
Inherited from std::integral_constant
Member constants
value [static] |
true (public static member constant) |
Member functions
operator bool |
converts the object to bool, returns value (public member function) |
operator() (C++14) |
returns value (public member function) |
Member types
Type | Definition |
value_type
|
bool |
type
|
std::integral_constant<bool, value> |
See also
(C++11) |
checks if the specified type supports uses-allocator construction (class template) |