summaryrefslogtreecommitdiffstats
path: root/libcxx/test/std/containers/sequences/dynarray/dynarray.traits/default.pass.cpp
blob: 9b8240d4cd82f4d6c8918f931a1113a39f027664 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
//===----------------------------------------------------------------------===//
//
//                     The LLVM Compiler Infrastructure
//
// This file is dual licensed under the MIT and the University of Illinois Open
// Source Licenses. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//

// dynarray.data

// template <class Type, class Alloc>
//   struct uses_allocator<dynarray<Type>, Alloc> : true_type { };

  
#include <__config>

#if _LIBCPP_STD_VER > 11

#include <experimental/dynarray>
#include "test_allocator.h"

using std::experimental::dynarray;

int main()
{
    static_assert ( std::uses_allocator<dynarray<int>, test_allocator<int>>::value, "" );
}
#else
int main() {}
#endif
OpenPOWER on IntegriCloud