Re: Making use of move semantics?



On Sun, 2017-05-21 at 15:03 +0100, Daniel Boles wrote:
On 21 May 2017 at 14:29, Murray Cumming <murrayc murrayc com> wrote:
We've already used move/r-value-references in several places, but
not
for string arguments.

I assume that std::string's own move operations give us enough
efficiency, so we wouldn't gave much by adding overloads such as
  set_something(std::string&& str);
but we could discuss specific code examples that we'd like to make more
efficient.

-- 
Murray Cumming
murrayc murrayc com
www.murrayc.com



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]