随笔分类 - c++
摘要:1 /*** 2 * @Author : yangzijian 3 * @Description : main 4 * @Date : 2021-01-25 15:21:31 5 */ 6 7 #include <stdio.h> 8 #include <iostream> 9 #include <
阅读全文
摘要:模板返回值参数,和const T&, T const&问题。 1.我有如下模板,当类型为不带*参数的时,一切正常 template<typename T> const T & Get(const T & aa) { const T & b = aa; std::cout << b << std::e
阅读全文