Namespaces
Variants
Views
Actions

Difference between revisions of "cpp/thread/packaged task/uses allocator"

From cppreference.com
(typo)
(typo)
Line 3: Line 3:
 
{{ddcl | notes={{mark since c++11}} |
 
{{ddcl | notes={{mark since c++11}} |
 
template< class R, class Alloc >
 
template< class R, class Alloc >
struct uses_allocator<std::promise<R>, Alloc> : true_type { };
+
struct uses_allocator<std::<R>, Alloc> : true_type { };
 
}}
 
}}
  

Revision as of 12:42, 22 April 2012

Template:cpp/thread/packaged task/sidebar

template< class R, class Alloc >
struct uses_allocator<std::packaged_task<R>, Alloc> : true_type { };
(since C++11)

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

See also

Template:cpp/memory/dcl list uses allocator