摘要: 模板实参推断与bind,ref总结 template <typename T> func(T arg) 模板形参没有任何引用,会忽略顶层const,比如传入const int,则T的参数仍为int 不会忽略底层const,比如传入const int* const,则T的参数为const int* 忽 阅读全文
posted @ 2021-10-03 16:39 manch1n 阅读(60) 评论(0) 推荐(0) 编辑