move를 통해서 얻을 수 있는 이점이 무엇인가요
std::move는 단순히 형변환에 지나지 않고, 보다 근본적인 질문은 "rvalue 참조와 move semantic이 왜 필요한가?" 이겠군요.
https://modoocode.com/189 여기에 잘 설명되어 있네요.
어떤 move요?
std::move (algorithm): https://en.cppreference.com/w/cpp/algorithm/move std::move (utility): https://en.cppreference.com/w/cpp/utility/move
std::move는 단순히 형변환에 지나지 않고,
std::move는 단순히 형변환에 지나지 않고, 보다 근본적인 질문은 "rvalue 참조와 move semantic이 왜 필요한가?" 이겠군요.
https://modoocode.com/189
여기에 잘 설명되어 있네요.
어떤 move요?
어떤 move요?
std::move (algorithm): https://en.cppreference.com/w/cpp/algorithm/move
std::move (utility): https://en.cppreference.com/w/cpp/utility/move