Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有人可以给我一个恒定 r 值的例子吗?
因为显然即使是文字也是 r-values 而不是 const r-values。
const T f();
根据该定义,表达式f()是类型的 r 值表达式const T,即常量 r 值。
f()
const T