#ifndef _LIBCPP___TYPE_TRAITS_COMMON_TYPE_H
#define _LIBCPP___TYPE_TRAITS_COMMON_TYPE_H
#include <__config>
#include <__type_traits/conditional.h>
#include <__type_traits/decay.h>
#include <__type_traits/is_same.h>
#include <__type_traits/remove_cvref.h>
#include <__type_traits/void_t.h>
#include <__utility/declval.h>
#if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
# pragma GCC system_header
#endif
_LIBCPP_BEGIN_NAMESPACE_STD
#if _LIBCPP_STD_VER >= 20
__cond_type;
template <class _Tp, class _Up, class = void>
struct __common_type3 { … };
__common_type3<_Tp, _Up, void_t<__cond_type<const _Tp &, const _Up &>>>;
template <class _Tp, class _Up, class = void>
struct __common_type2_imp : __common_type3<_Tp, _Up> { … };
#else
template <class _Tp, class _Up, class = void>
struct __common_type2_imp {};
#endif
__common_type2_imp<_Tp, _Up, __void_t<decltype(true ? std::declval<_Tp>() : std::declval<_Up>())>>;
template <class, class = void>
struct __common_type_impl { … };
template <class... _Tp>
struct __common_types;
template <class... _Tp>
struct _LIBCPP_TEMPLATE_VIS common_type;
__common_type_impl<__common_types<_Tp, _Up>, __void_t<typename common_type<_Tp, _Up>::type>>;
__common_type_impl<__common_types<_Tp, _Up, _Vp, _Rest...>, __void_t<typename common_type<_Tp, _Up>::type>>;
template <>
struct _LIBCPP_TEMPLATE_VIS common_type<> { … };
common_type<_Tp>;
common_type<_Tp, _Up>;
common_type<_Tp, _Up, _Vp, _Rest...>;
#if _LIBCPP_STD_VER >= 14
common_type_t;
#endif
_LIBCPP_END_NAMESPACE_STD
#endif