1 //===----------------------------------------------------------------------===//
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
11 // tuple_size<array<T, N> >::value
15 #include "test_macros.h"
17 template <class T
, std::size_t N
>
21 typedef std::array
<T
, N
> C
;
22 static_assert((std::tuple_size
<C
>::value
== N
), "");
25 typedef std::array
<T
const, N
> C
;
26 static_assert((std::tuple_size
<C
>::value
== N
), "");
29 typedef std::array
<T
volatile, N
> C
;
30 static_assert((std::tuple_size
<C
>::value
== N
), "");
33 typedef std::array
<T
const volatile, N
> C
;
34 static_assert((std::tuple_size
<C
>::value
== N
), "");