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 // template<class T, T N>
12 // using make_integer_sequence = integer_sequence<T, 0, 1, ..., N-1>;
14 // UNSUPPORTED: c++03, c++11
17 #include <type_traits>
20 #include "test_macros.h"
24 static_assert(std::is_same
<std::make_integer_sequence
<int, 0>, std::integer_sequence
<int>>::value
, "");
25 static_assert(std::is_same
<std::make_integer_sequence
<int, 1>, std::integer_sequence
<int, 0>>::value
, "");
26 static_assert(std::is_same
<std::make_integer_sequence
<int, 2>, std::integer_sequence
<int, 0, 1>>::value
, "");
27 static_assert(std::is_same
<std::make_integer_sequence
<int, 3>, std::integer_sequence
<int, 0, 1, 2>>::value
, "");
29 static_assert(std::is_same
<std::make_integer_sequence
<unsigned long long, 0>, std::integer_sequence
<unsigned long long>>::value
, "");
30 static_assert(std::is_same
<std::make_integer_sequence
<unsigned long long, 1>, std::integer_sequence
<unsigned long long, 0>>::value
, "");
31 static_assert(std::is_same
<std::make_integer_sequence
<unsigned long long, 2>, std::integer_sequence
<unsigned long long, 0, 1>>::value
, "");
32 static_assert(std::is_same
<std::make_integer_sequence
<unsigned long long, 3>, std::integer_sequence
<unsigned long long, 0, 1, 2>>::value
, "");