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 // <array> 11 12 // tuple_size<array<T, N> >::value 13 14 #include <array> 15 16 int main() 17 { 18 { 19 typedef double T; 20 typedef std::array<T, 3> C; 21 static_assert((std::tuple_size<C>::value == 3), ""); 22 } 23 { 24 typedef double T; 25 typedef std::array<T, 0> C; 26 static_assert((std::tuple_size<C>::value == 0), ""); 27 } 28 } 29