prvalue
English
Etymology
Short for pure rvalue. According to Bjarne Stroustrup, coined by ISO/IEC JTC 1/SC 22 in 2010.[1]
Pronunciation
- (Received Pronunciation) IPA(key): /piːˈɑː.væl.juː/
- (General American) IPA(key): /piˈɑɹ.væl.ju/
Noun
prvalue (plural prvalues)
- (programming) An rvalue that is not an xvalue.
- 2010 March 12, William M. Miller, “A Taxonomy of Expression Value Categories”, in C++ Standards Committee Papers[2], page 3:
- 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.
- 2010 April, Bjarne Stroustrup, “"New" Value Terminology”, in stroustrup.com[3], page 4:
- In Pittsburgh (and a few places later), I had the opportunity to explain this terminology to several people. It can be done in a few minutes. I think it has prvalue (Groan!).
- 2020, Roger Villela, “Working with Lvalue and Rvalue References”, in Introducing Mechanisms and APIs for Memory Management: Using Windows OS Native Runtime APIs, Apress, , →ISBN, page 158:
- If the expression is categorized as an rvalue, the next evaluation can categorize it as a prvalue or xvalue.
References
Further reading
- Miller, William M. (12 March 2010), “A Taxonomy of Expression Value Categories”, in C++ Standards Committee Papers[4]