Use C++'11 rvalue feature to simplify the returning of a STL container

An example of how to using C++'11 's rvalue feature to simplify the code.