摘要: 1、decltype(exp) decltype 函数获取类型时,会获取const 或者 引用。decltype 是唯一在引用的上下文中,不把引用当做对象对待的。 参数有两种,变量和表达式 1) decltype(variable) 返回的是变量的类型,包括const 和 引用 2)decltype 阅读全文
posted @ 2022-03-23 16:40 听书人 阅读(139) 评论(0) 推荐(0)