Can you give an example?
Is
void foo(T&& value) {
...
}
similar to fn foo(value: T) {
...
}
?Is
void foo(T&& value) {
...
}
similar to fn foo(value: T) {
...
}
?Or at least that's the idea. In C++, it's up to the author of T to implement such semantics (through its move constructor) correctly for non-trivial types.