#ifndef LLVM_LIBC_SRC___SUPPORT_CPP_TYPE_TRAITS_REMOVE_ALL_EXTENTS_H
#define LLVM_LIBC_SRC___SUPPORT_CPP_TYPE_TRAITS_REMOVE_ALL_EXTENTS_H
#include "src/__support/CPP/type_traits/type_identity.h"
#include "src/__support/macros/config.h"
#include <stddef.h>
namespace LIBC_NAMESPACE_DECL {
namespace cpp {
#if __has_builtin(__remove_all_extents)
remove_all_extents_t;
template <typename T>
struct remove_all_extents : cpp::type_identity<remove_all_extents_t<T>> { … };
#else
template <typename T> struct remove_all_extents {
using type = T;
};
template <typename T> struct remove_all_extents<T[]> {
using type = typename remove_all_extents<T>::type;
};
template <typename T, size_t _Np> struct remove_all_extents<T[_Np]> {
using type = typename remove_all_extents<T>::type;
};
template <typename T>
using remove_all_extents_t = typename remove_all_extents<T>::type;
#endif
}
}
#endif