Programming Languages, Cpp, Software Development, Coding, Optimization.
verify that the call result and the name x refer to the same entity with an assert. However, the lambda itself does not have an identity; therefore, it is a prvalue. Another typical example of lvalues and prvalues are function-call and operator expressions that result in a reference (for lvalues)