10 2020 档案

摘要:2.正文 2.1 左值引用(&)与右值引用(&&) 在c++11中提出了右值引用,作用是为了和左值引用区分开来,其作用是: 右值引用限制了其只能接收右值,可以利用这个特性从而提供重载,这是右值引用有且唯一的特性,限制了接收参数必为右值, 这点常用在move construct中,告诉别人这是一个即将 阅读全文
posted @ 2020-10-05 23:06 woder 阅读(10616) 评论(2) 推荐(2) 编辑
摘要:#include <iostream> #include <utility> #include <boost/type_index.hpp> using namespace std; using boost::typeindex::type_id_with_cvr; template<typenam 阅读全文
posted @ 2020-10-05 23:02 woder 阅读(755) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示