【无标题】

cpp 复制代码
	// STRUCT TEMPLATE add_rvalue_reference
template<class _Ty>
	struct add_rvalue_reference
	{	// add rvalue reference
	using type = typename _Add_reference<_Ty>::_Rvalue;
	};

template<class _Ty>
	using add_rvalue_reference_t = typename _Add_reference<_Ty>::_Rvalue;

	// FUNCTION TEMPLATE declval
template<class _Ty>
	add_rvalue_reference_t<_Ty> declval() noexcept;
cpp 复制代码
	// STRUCT TEMPLATE _Add_reference
template<class _Ty,
	class = void>
	struct _Add_reference
	{	// add reference
	using _Lvalue = _Ty;
	using _Rvalue = _Ty;
	};

void_t <_Ty&>用来做什么?
template<class _Ty>
	struct _Add_reference<_Ty, void_t<_Ty&>>
	{	// add reference
	using _Lvalue = _Ty&;
	using _Rvalue = _Ty&&;
	};
相关推荐
m0_459872924 分钟前
Linux 系统基础
linux·运维·服务器
夜不会漫长13 分钟前
C++:类和对象(2)
java·javascript·c++
掰头战士17 分钟前
聊聊 Function Calling,你的模型是否答非所问?
前端·typescript·agent
IT毕设实战小研17 分钟前
基于大数据的国内主要农作物产量趋势分析与可视化
android·java·大数据·django·课程设计
星辞秋19 分钟前
Java 入门实战:从零搭建环境到写出第一个可用的命令行工具
java
Yeyu20 分钟前
车载多 App 同屏渲染(三):RemoteCompose 序列化 UI
前端
ch.ju22 分钟前
Java—idea知识:如何创建新项目
java·开发语言·intellij-idea
土司大王23 分钟前
LeetCode hot100——74.搜索二维矩阵:Java 二分模板
java·算法·leetcode
weixin1997010801640 分钟前
[特殊字符]《京东POP二手品类对接:B2C订单模型 vs 二手C2C属性的字段转换难题》(附Python源码)
前端·python·算法
2401_891957311 小时前
简单了解多路转接select
运维·服务器