File tree Expand file tree Collapse file tree 1 file changed +3
-8
lines changed Expand file tree Collapse file tree 1 file changed +3
-8
lines changed Original file line number Diff line number Diff line change @@ -67,17 +67,12 @@ _LIBCPP_BEGIN_NAMESPACE_STD
6767
6868namespace ranges {
6969
70- template <class _Tp , class ... _Tail>
71- struct __extract_last : __extract_last<_Tail...> {};
72-
73- template <class _Tp >
74- struct __extract_last <_Tp> {
75- using type = _Tp;
76- };
70+ template <class ... __Tp>
71+ using __extract_last = __Tp...[sizeof ...(__Tp) - 1 ];
7772
7873template <class _Tp , class ... _Tail>
7974constexpr bool __derived_from_pack =
80- __derived_from_pack<_Tp, typename __extract_last<_Tail...>::type > && __derived_from_pack<_Tail...>;
75+ __derived_from_pack<_Tp, __extract_last<_Tail...>> && __derived_from_pack<_Tail...>;
8176
8277template <class _Tp , class _IterCategory >
8378constexpr bool __derived_from_pack<_Tp, _IterCategory> = derived_from<_Tp, _IterCategory>;
You can’t perform that action at this time.
0 commit comments