Skip to main content

Move Semantics

  • Chapter
  • First Online:
  • 4849 Accesses

Abstract

This chapter complements and completes several key topics discussed in the middle parts of the book.

This is a preview of subscription content, log in via an institution.

Buying options

Chapter
USD   29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD   39.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever

Tax calculation will be finalised at checkout

Purchases are for personal use only

Learn about institutional subscriptions

Notes

  1. 1.

    The C++ standard actually defines three additional expression categories with the names glvalue, prvalue, and xvalue. Formally, lvalue and rvalue are then defined in terms of these. But trust us, you really do not need to know all these gory details. Our brief, more informal discussion here will serve you just fine!

  2. 2.

    Technically, std::move() is defined in the <utility> header. In practice, though, you’ll rarely have to explicitly include this header to make use of std::move().

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints and permissions

Copyright information

© 2018 Ivor Horton and Peter Van Weert

About this chapter

Check for updates. Verify currency and authenticity via CrossMark

Cite this chapter

Horton, I., Van Weert, P. (2018). Move Semantics. In: Beginning C++17. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-3366-5_17

Download citation

Publish with us

Policies and ethics