Search code examples
Is there a technical reason why range-based for loop doesn't detect whether it's looping on ...


c++language-lawyermove-semanticsrvaluerange-based-loop

Read More
Can an rvalue of a specific class type be automatically cast to an lvalue of itself?...


c++castingreferencervaluelvalue

Read More
Is it OK for a function to return a local reference by value?...


c++rvalue

Read More
C struct assignment by unnamed struct initialized by member-wise list, syntax candy or unintentional...


cstructrvalue

Read More
Given an API that returns const char*, how to get its return value's address?...


c++pointersrvaluereturn-by-value

Read More
Value categories in C++: What does "can be moved from" mean?...


c++c++11language-lawyermove-semanticsrvalue

Read More
Passing Complex real and imag by reference...


c++c++11referencecomplex-numbersrvalue

Read More
Why are there no rvalue ref-qualified begin() overloads in STL containers?...


c++movervalue

Read More
cannot bind non-const lvalue reference of type 'int*&' to an rvalue of type 'int*&#3...


c++arraysrvaluelvalue

Read More
Why does adding std::move bring the capture back to the stack?...


c++lambdamove-semanticsrvalue

Read More
Why is move-constructor not called?...


c++c++11rvalue-referencervaluelvalue

Read More
Cannot return a named rvalue reference in a function with return type of lvalue reference?...


c++rvaluelvaluec++23

Read More
Are compound literals always lvalue?...


crvaluelvaluecompound-literals

Read More
What is the difference in atomic_load() and assignment?...


cc11rvaluestdatomiclvalue-to-rvalue

Read More
Binding temporary to a lvalue reference...


c++rvaluelvalue

Read More
Why does passing rvalue to lvalue reference work in this case?...


c++rvaluelvalue

Read More
Designing function API to avoid object lifetime problems...


c++lambdaapi-designrvalue

Read More
What makes moving objects faster than copying?...


c++move-semanticsrvaluestdmove

Read More
Exact difference between rvalue and lvalue...


c++c++11rvalue

Read More
move assignment argument throws error when dereferenced but works when member accessed directly...


c++pointersmove-semanticsrvalue

Read More
May object pointer be always compared with nullptr in a constant expression?...


c++pointerslanguage-lawyerconstexprrvalue

Read More
Why is it allowed to pass rvalues by const reference but not by normal reference?...


c++parametersliteralsrvaluepass-by-const-reference

Read More
Is an rvalue reference treated as an lvalue when used within a function?...


c++c++11rvalue-referencelvaluervalue

Read More
What are lvalues and rvalues?...


crvaluelvalue

Read More
Can invoke C++ methods on temporary r-values, but can't pass the same to global functions...


c++lifetimervalue

Read More
Using rvalue in the condition statement of `for` loop in C++...


c++multithreadingfor-loopmutexrvalue

Read More
How does std::forward work in the context of a fold expression?...


c++templatesreferencervaluestdmove

Read More
Function Params as 'const T&' and 'T&&'...


c++rvaluelvalue

Read More
Why is it possible to assign to an rvalue of class type?...


c++c++11language-lawyerrvaluelvalue-to-rvalue

Read More
Why std::string a; std::string b; a + b = "abc"; OK?...


c++stringoperator-overloadingrvaluecopy-assignment

Read More
BackNext