摘要: [= delete] using private constructor: application-1: 点击查看代码 #include<iostream> using namespace std; class B; class A { friend class B; private: A() {} 阅读全文
posted @ 2022-07-24 18:35 locker_10086 阅读(14) 评论(0) 推荐(0) 编辑
摘要: [remove_reference] 点击查看代码 #include<iostream> using namespace std; template<typename Tp> class remove_ref { public: typedef Tp type; }; template<typena 阅读全文
posted @ 2022-07-24 18:18 locker_10086 阅读(18) 评论(0) 推荐(0) 编辑
摘要: [pass by left-value refernece] [pass by right-value refernece] 点击查看代码 #include<iostream> #include<vector> using namespace std; void print(int &&param) 阅读全文
posted @ 2022-07-24 18:13 locker_10086 阅读(13) 评论(0) 推荐(0) 编辑
摘要: lamda can be as an inline function or a object. [how to understand "lamda", comparing with class] [lamda introducer: pass value or reference ] [spec: 阅读全文
posted @ 2022-07-24 00:58 locker_10086 阅读(182) 评论(0) 推荐(0) 编辑