What is the name of type T && in C++? -
this question has answer here:
if have function f(t *)
describe f takes pointer t
.
f(t &)
f takes reference t
.
how pronounce f(t &&)
?
it depends on context. when t
known type t&&
rvalue reference. when t
template parameter t&&
universal reference.
Comments
Post a Comment