07 2022 档案

摘要:点击查看代码 #include<iostream> using namespace std; // prototype class Img { public: static void FindAndClone() { for (int id = 0; id <= count; ++id) { _Pr 阅读全文
posted @ 2022-07-26 22:22 locker_10086 阅读(14) 评论(0) 推荐(0)
摘要:[= 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 阅读(25) 评论(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 阅读(26) 评论(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 阅读(20) 评论(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 阅读(206) 评论(0) 推荐(0)