j
k
j a
j l
Giovanni Piero Deretta:
template<class T> T destructive_copy(T& x) { using std::swap; T result; swap(result, x); return x; }
This is pretty cool. A completely move-library-less implementation of move.
Back to the thread
Back to the list