Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8848851
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T12:30:00+00:00 2026-06-14T12:30:00+00:00

I get that C++ 11 has introduced the new move semantics and as consequence

  • 0

I get that C++ 11 has introduced the new move semantics and as consequence data containers are changed to meet the new definitions and specifications of the language, I don’t really get how the standard containers benefits from them.

Also I think that I have got what an Rvalue is and how the move semantics act, the problem is i don’t see any useful point about this, moving things and changing their labels doesn’t sound like a meaningful feature.

I can ask for a good resource about how map, list, vector, ... are changing in the new C++11 ?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T12:30:01+00:00Added an answer on June 14, 2026 at 12:30 pm

    The reason RValues and LValues were introduced is it can be much faster to move object data than it is to perform a copy on it. The performance gain is mainly because of internally stored pointers that do not need to be replicated during a move, which would otherwise involve needless malloc calls and memcpys. For instance, std::string contains a pointer to a char array that can be very large. Copying it would involve copying the data in that char array, moving simply involves copying the pointer to that data.

    With respect to LValues and RValues, the only things, of which I’m aware, that have changed, is now we have a shiny new constructor to play with, and many of the member functions have been rewritten to take advantage of move semantics.

    For instance, std::vector now has a std::vector::vector(std::vector&& move) ctor, and functions like push_back have been changed to also accept RValues.

    This should be, for the most part, seemless to you. If you’re writing a library, rather than just using one, you need to know this, and URefs too.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

How do I get the text that has been truncated by Android into an
If I want to get a user that has the email address of 'me@example.com',
How to get all id of div.A that has div.collapse is visible,example: <div class=A>
I'm trying to get a value from an HTML page that has the name
I'm trying to get MSBuild working on a project that has just been moved
I'm trying to get a target to build that has quite a long list
So I have a class that has the following member variables. I have get
How I can get the location of a program that has been installed on
When it posts back I get the following error: The ViewData item that has
Does anyone know of a List implementation that has a constant time get(int index)

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.