1 //===----------------------------------------------------------------------===// 2 // 3 // The LLVM Compiler Infrastructure 4 // 5 // This file is dual licensed under the MIT and the University of Illinois Open 6 // Source Licenses. See LICENSE.TXT for details. 7 // 8 //===----------------------------------------------------------------------===// 9 // 10 // UNSUPPORTED: libcpp-has-no-threads 11 12 // <future> 13 14 // class packaged_task<R(ArgTypes...)> 15 16 // template <class Callable, class Alloc> 17 // struct uses_allocator<packaged_task<Callable>, Alloc> 18 // : true_type { }; 19 20 #include <future> 21 #include "../../test_allocator.h" 22 23 int main() 24 { 25 static_assert((std::uses_allocator<std::packaged_task<double(int, char)>, test_allocator<int> >::value), ""); 26 } 27