//===-- Analogous to ----------------------------------*- C++ -*-===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===----------------------------------------------------------------------===// #ifndef LLVM_LIBC_SRC_SUPPORT_CPP_UTILITY_H #define LLVM_LIBC_SRC_SUPPORT_CPP_UTILITY_H #include "src/__support/CPP/TypeTraits.h" namespace __llvm_libc::cpp { template struct IntegerSequence { static_assert(IsIntegral::Value); template using append = IntegerSequence; }; namespace internal { template struct MakeIntegerSequence { using type = typename MakeIntegerSequence::type::template append; }; template struct MakeIntegerSequence { using type = IntegerSequence; }; } // namespace internal template using MakeIntegerSequence = typename internal::MakeIntegerSequence::type; } // namespace __llvm_libc::cpp #endif // LLVM_LIBC_SRC_SUPPORT_CPP_UTILITY_H