摘要: 对使用 auto 来表明函数返回类型的情况,编译器使用模板类型推导,会消除引用。 decltype推断则保留返回值类型。 比如 template<typename Container, typename Index> auto authAndAccess(Container &c, Index i) 阅读全文
posted @ 2022-09-03 16:27 heisse 阅读(82) 评论(0) 推荐(0)