• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 promise<R>
13 
14 // template <class R, class Alloc>
15 //   struct uses_allocator<promise<R>, Alloc>
16 //      : true_type { };
17 
18 #include <future>
19 #include "../test_allocator.h"
20 
main()21 int main()
22 {
23     static_assert((std::uses_allocator<std::promise<int>, test_allocator<int> >::value), "");
24     static_assert((std::uses_allocator<std::promise<int&>, test_allocator<int> >::value), "");
25     static_assert((std::uses_allocator<std::promise<void>, test_allocator<void> >::value), "");
26 }
27