C++ 11 move

简介

简单来说, move 可以对于赋值操作带来更好的效率, 因为减少了临时变量的构建.
另外对于完美转发, 右值与左值的使用, 晕晕晕.

参考链接

https://blog.csdn.net/booirror/article/details/45057689

code

 ans.push_back(move(ipAddr));
Hope is a good thing,maybe the best of things,and no good thing ever dies.----------- Andy Dufresne
原文地址:https://www.cnblogs.com/eat-too-much/p/14848322.html