xvalue

An lvalue (so-called, historically, because lvalues could appear 
on the left-hand side of an assignment expression) designates a
function or an object. [Example: If E is an expression of pointer
type, then *E is an lvalue expression referring to the object or
function to which E points. As another example, the result of calling
a function whose return type is an lvalue reference is an lvalue

An xvalue (an “eXpiring” value) also refers to an object, usually 
near the end of its lifetime (so that its resources may be moved,
for example). An xvalue is the result of certain kinds of expressions
involving rvalue references. [Example: The result of calling a 
function whose return type is an rvalue reference is an xvalue.]

A glvalue (“generalized” lvalue) is an lvalue or an xvalue.

An rvalue (so-called, historically, because rvalues could appear
on the right-hand side of an assignment expression) is an xvalue,
a temporary object or subobject thereof, or a value that is not
associated with an object

A prvalue (“pure” rvalue) is an rvalue that is not an xvalue.
[Example: The result of calling a function whose return type
is not a reference is a prvalue]

Are there any code examples left?
Made with love
This website uses cookies to make IQCode work for you. By using this site, you agree to our cookie policy

Welcome Back!

Sign up to unlock all of IQCode features:
  • Test your skills and track progress
  • Engage in comprehensive interactive courses
  • Commit to daily skill-enhancing challenges
  • Solve practical, real-world issues
  • Share your insights and learnings
Create an account
Sign in
Recover lost password
Or log in with

Create a Free Account

Sign up to unlock all of IQCode features:
  • Test your skills and track progress
  • Engage in comprehensive interactive courses
  • Commit to daily skill-enhancing challenges
  • Solve practical, real-world issues
  • Share your insights and learnings
Create an account
Sign up
Or sign up with
By signing up, you agree to the Terms and Conditions and Privacy Policy. You also agree to receive product-related marketing emails from IQCode, which you can unsubscribe from at any time.
Creating a new code example
Code snippet title
Source