3 ms·
Both are similar in the sense that `foo` owns `value`, yes. Or at least that's the idea. In C++, it's up to the author of T to implement such semantics (throug
by krona 10y ago
Both are similar in the sense that `foo` owns `value`, yes.
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.