Responsive Ad Area

Share This Post

test

std::move performance while passing a big string as rvalue?

How std::move helps in performance? I read that it does not copy it does ownership transfer but how it happened?
My main question is if we pass a big object or big string as rvalue using std::move , how it will help in no copy but there will be somewhere some copy in either copy assignment operator or in copy constructor?
How will it transfer the ownership of stack based object since scope of stack objects are limited?


std::move performance while passing a big string as rvalue?
std::move performance while passing a big string as rvalue?
test
{$excerpt:n}

Share This Post

Leave a Reply

Your email address will not be Publishedd. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

Skip to toolbar