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 // <future> 11 12 // class packaged_task<R(ArgTypes...)> 13 14 // template <class Callable, class Alloc> 15 // struct uses_allocator<packaged_task<Callable>, Alloc> 16 // : true_type { }; 17 18 #include <future> 19 #include "../../test_allocator.h" 20 21 int main() 22 { 23 static_assert((std::uses_allocator<std::packaged_task<double(int, char)>, test_allocator<int> >::value), ""); 24 } 25