Namespaces
Variants
Actions

std::uses_allocator<std::promise>

From cppreference.com
< cpp‎ | thread‎ | promise
 
 
Concurrency support library
(C++11)
(C++20)
(C++11)
(C++11)
(C++11)
(C++11)
(C++11)
(C++17)
(C++11)
(C++11)
(C++17)
(C++11)
(C++14)
(C++11)
(C++11)
(C++11)
(C++11)
(C++20)
(C++20)
(C++11)
(C++11)
(C++11)
(C++11)
(C++11)
(C++11)
(C++26)
(C++26)
(C++26)
(C++26)
(C++11)
(C++20)
(C++11)
(C++11)(deprecated in C++20)
(C++11)(deprecated in C++20)
(C++11)
(C++11)(deprecated in C++26)
 
 
template< class R, class Alloc >
struct uses_allocator<std::promise <R>, Alloc> : std::true_type {};
(since C++11)

Provides a specialization of the std::uses_allocator type trait for std::promise .

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>

[edit] See also

checks if the specified type supports uses-allocator construction
(class template) [edit]
Retrieved from "https://en.cppreference.com/mwiki/index.php?title=cpp/thread/promise/uses_allocator&oldid=161214"

AltStyle によって変換されたページ (->オリジナル) /