opnsense-src/test/libcxx/experimental/containers/sequences/dynarray/dynarray.traits/default.pass.cpp

29 lines
743 B
C++
Raw Normal View History

//===----------------------------------------------------------------------===//
//
// 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
2015-09-06 14:46:46 -04:00
// dynarray.data
2015-09-06 14:46:46 -04:00
// template <class Type, class Alloc>
// struct uses_allocator<dynarray<Type>, Alloc> : true_type { };
#include <__config>
2015-09-06 14:46:46 -04:00
#include <experimental/dynarray>
#include "test_allocator.h"
2015-09-06 14:46:46 -04:00
using std::experimental::dynarray;
2015-09-06 14:46:46 -04:00
int main()
{
static_assert ( std::uses_allocator<dynarray<int>, test_allocator<int>>::value, "" );
}