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()
std::add_rvalue_reference()
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.
std::move
std::add_rvalue_reference
2.1m questions
2.1m answers
63 comments
56.6k users