aboutsummaryrefslogtreecommitdiff
path: root/test/libcxx/experimental/containers/sequences/dynarray/dynarray.traits/default.pass.cpp
blob: 48da6d885773fee503d6e1d436df841d728a7cc0 (plain) (blame)
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
//===----------------------------------------------------------------------===//
//
//                     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.
//
//===----------------------------------------------------------------------===//

// UNSUPPORTED: c++98, c++03, c++11
// dynarray.data

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


#include <__config>

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

using std::experimental::dynarray;

int main()
{
    static_assert ( std::uses_allocator<dynarray<int>, test_allocator<int>>::value, "" );
}