Can somebody explain the difference between std::move() and std::add_rvalue_reference()? Do both serve the same purpose? If yes, what is the advantage of one over the other?
Can somebody explain the difference between std::move() and std::add_rvalue_reference()? Do both serve the same purpose? If yes, what is the advantage of one over the other?
std::move is a cast on an object, std::add_rvalue_reference manipulates a type, other than both dealing with r-value references they aren't really related.