File tree 1 file changed +12
-9
lines changed
libcxx/include/__type_traits 1 file changed +12
-9
lines changed Original file line number Diff line number Diff line change 20
20
21
21
_LIBCPP_BEGIN_NAMESPACE_STD
22
22
23
- template <class _From , class _To >
23
+ template <class _From >
24
24
struct __copy_cvref {
25
- using type = __copy_cv_t <_From, _To>;
25
+ template <class _To >
26
+ using __apply _LIBCPP_NODEBUG = __copy_cv_t <_From, _To>;
26
27
};
27
28
28
- template <class _From , class _To >
29
- struct __copy_cvref <_From&, _To> {
30
- using type = __add_lvalue_reference_t <__copy_cv_t <_From, _To> >;
29
+ template <class _From >
30
+ struct __copy_cvref <_From&> {
31
+ template <class _To >
32
+ using __apply _LIBCPP_NODEBUG = __add_lvalue_reference_t <__copy_cv_t <_From, _To> >;
31
33
};
32
34
33
- template <class _From , class _To >
34
- struct __copy_cvref <_From&&, _To> {
35
- using type = __add_rvalue_reference_t <__copy_cv_t <_From, _To> >;
35
+ template <class _From >
36
+ struct __copy_cvref <_From&&> {
37
+ template <class _To >
38
+ using __apply _LIBCPP_NODEBUG = __add_rvalue_reference_t <__copy_cv_t <_From, _To> >;
36
39
};
37
40
38
41
template <class _From , class _To >
39
- using __copy_cvref_t _LIBCPP_NODEBUG = typename __copy_cvref<_From, _To >::type ;
42
+ using __copy_cvref_t _LIBCPP_NODEBUG = typename __copy_cvref<_From>::template __apply<_To> ;
40
43
41
44
_LIBCPP_END_NAMESPACE_STD
42
45
You can’t perform that action at this time.
0 commit comments