Xvalue
noun ·Rare ·Advanced level
Definitions
- 1 A value representing an object near the end of its lifetime whose resources can be reused, typically by moving them.
"Together, xvalues and lvalues are called “glvalues” (“generalized” lvalues). Rvalues, as currently known in the core language clauses, are renamed to “prvalues” (“pure” rvalues). Together, prvalues and xvalues are called “rvalues,” reflecting the use of that term in the library clauses and the intended uses in reference binding, overload resolution, and template argument deduction. […] An xvalue is the result of certain kinds of expressions involving rvalue references (8.3.2)."
Example
More examples"Together, xvalues and lvalues are called “glvalues” (“generalized” lvalues). Rvalues, as currently known in the core language clauses, are renamed to “prvalues” (“pure” rvalues). Together, prvalues and xvalues are called “rvalues,” reflecting the use of that term in the library clauses and the intended uses in reference binding, overload resolution, and template argument deduction. […] An xvalue is the result of certain kinds of expressions involving rvalue references (8.3.2)."
Etymology
Short for expiring value.
More for "xvalue"
Data sourced from Wiktionary, WordNet, CMU, and other open linguistic databases. Updated March 2026.