158915667SArthur O'Dwyer //===----------------------------------------------------------------------===// 258915667SArthur O'Dwyer // 358915667SArthur O'Dwyer // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 458915667SArthur O'Dwyer // See https://llvm.org/LICENSE.txt for license information. 558915667SArthur O'Dwyer // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 658915667SArthur O'Dwyer // 758915667SArthur O'Dwyer //===----------------------------------------------------------------------===// 858915667SArthur O'Dwyer 958915667SArthur O'Dwyer #ifndef _LIBCPP___CONCEPTS_CLASS_OR_ENUM_H 1058915667SArthur O'Dwyer #define _LIBCPP___CONCEPTS_CLASS_OR_ENUM_H 1158915667SArthur O'Dwyer 1258915667SArthur O'Dwyer #include <__config> 1366ba7c32SNikolas Klauser #include <__type_traits/is_class.h> 1466ba7c32SNikolas Klauser #include <__type_traits/is_enum.h> 1566ba7c32SNikolas Klauser #include <__type_traits/is_union.h> 1666ba7c32SNikolas Klauser #include <__type_traits/remove_cvref.h> 1758915667SArthur O'Dwyer 1858915667SArthur O'Dwyer #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) 1958915667SArthur O'Dwyer # pragma GCC system_header 2058915667SArthur O'Dwyer #endif 2158915667SArthur O'Dwyer 2258915667SArthur O'Dwyer _LIBCPP_BEGIN_NAMESPACE_STD 2358915667SArthur O'Dwyer 24*4f15267dSNikolas Klauser #if _LIBCPP_STD_VER >= 20 2558915667SArthur O'Dwyer 2658915667SArthur O'Dwyer // Whether a type is a class type or enumeration type according to the Core wording. 2758915667SArthur O'Dwyer 2858915667SArthur O'Dwyer template <class _Tp> 2958915667SArthur O'Dwyer concept __class_or_enum = is_class_v<_Tp> || is_union_v<_Tp> || is_enum_v<_Tp>; 3058915667SArthur O'Dwyer 31*4f15267dSNikolas Klauser #endif // _LIBCPP_STD_VER >= 20 3258915667SArthur O'Dwyer 3358915667SArthur O'Dwyer _LIBCPP_END_NAMESPACE_STD 3458915667SArthur O'Dwyer 3558915667SArthur O'Dwyer #endif // _LIBCPP___CONCEPTS_CLASS_OR_ENUM_H 36