Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

&&

26 views
Skip to first unread message

Popping mad

unread,
Nov 26, 2016, 10:06:43 PM11/26/16
to
What exactly is this

T& operator=(T&& other) // move assignment
{
assert(this != &other); // self-assignment check not required
delete[] mArray; // delete this storage
mArray = std::exchange(other.mArray, nullptr); // leave moved-from in
valid state
return *this;
}

specifically T&& other

http://en.cppreference.com/w/cpp/language/operators

Ian Collins

unread,
Nov 26, 2016, 10:44:07 PM11/26/16
to
0 new messages