- 有哪些引用类型?
- 有万能引用这个说法吗?
- 深思c++引用的作用
#includeusing namespace std; void func1(const int &x) { cout << __PRETTY_FUNCTION__ << " called" < 运行结果 void func1(const int&) called void func1(const int&) called void func1(const int&) called代码2#includeusing namespace std; void func1(int &x) { cout << __PRETTY_FUNCTION__ << " called" < 运行结果 void func1(int&) called void func1(const int&) called void func1(int&&) called欢迎分享,转载请注明来源:内存溢出
评论列表(0条)