StackOverflow Questions for Tag: rvalue

zwhconst
zwhconst

Reputation: 1523

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

Score: 4

Views: 85

Answers: 1

Read More
Bobby
Bobby

Reputation: 121

Are compound literals always lvalue?

Score: 1

Views: 112

Answers: 2

Read More
Mihir Luthra
Mihir Luthra

Reputation: 6779

What is the difference in atomic_load() and assignment?

Score: 3

Views: 3842

Answers: 1

Read More
Navaneeth K N
Navaneeth K N

Reputation: 15521

Binding temporary to a lvalue reference

Score: 11

Views: 4725

Answers: 5

Read More
Aik
Aik

Reputation: 65

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

Score: 2

Views: 89

Answers: 1

Read More
Adrian McCarthy
Adrian McCarthy

Reputation: 48021

Designing function API to avoid object lifetime problems

Score: 1

Views: 90

Answers: 2

Read More
Laith
Laith

Reputation: 1326

What makes moving objects faster than copying?

Score: 69

Views: 31398

Answers: 3

Read More
Pranit Kothari
Pranit Kothari

Reputation: 9839

Exact difference between rvalue and lvalue

Score: 15

Views: 29871

Answers: 2

Read More
Bruno Mraz
Bruno Mraz

Reputation: 29

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

Score: 1

Views: 126

Answers: 1

Read More
Fedor
Fedor

Reputation: 21307

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

Score: 5

Views: 103

Answers: 1

Read More
John Glen
John Glen

Reputation: 951

Does the C++ standard library have function types that are non-copy-constructible?

Score: 0

Views: 96

Answers: 0

Read More
Gonen I
Gonen I

Reputation: 6127

Perfect Forward using std::forward vs RefRefCast

Score: 5

Views: 208

Answers: 2

Read More
Nir
Nir

Reputation: 1678

std::is_same different results between compilers

Score: 60

Views: 2492

Answers: 1

Read More
BeigeAlert
BeigeAlert

Reputation: 313

MSVC constexpr error "a non-constant (sub-)expression was encountered (with no info) (works on Clang!)

Score: 0

Views: 150

Answers: 0

Read More
AnotherOne
AnotherOne

Reputation: 923

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

Score: 44

Views: 22712

Answers: 5

Read More
Jonathan Mee
Jonathan Mee

Reputation: 38949

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

Score: 52

Views: 16650

Answers: 5

Read More
S.S. Anne
S.S. Anne

Reputation: 15586

What are lvalues and rvalues?

Score: 3

Views: 212

Answers: 2

Read More
Matthew Busche
Matthew Busche

Reputation: 674

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

Score: 2

Views: 74

Answers: 1

Read More
Osmium
Osmium

Reputation: 179

Understanding C++ Postfix Increment Operator Behavior in Assignment: Unexpected Results with obj1++ = obj2;

Score: 0

Views: 75

Answers: 0

Read More
peng
peng

Reputation: 1

why the rvalue is deduced to be lvalue?

Score: 0

Views: 66

Answers: 0

Read More
PreviousPage 1Next