StackOverflow Questions for Tag: stdmove

AhSeng Fan
AhSeng Fan

Reputation: 467

Does assigning make_unique require std::move() to an empty unique_ptr?

Score: 13

Views: 7097

Answers: 3

Read More
Basilevs
Basilevs

Reputation: 23896

What is std::move(), and when should it be used?

Score: 1182

Views: 628351

Answers: 10

Read More
san216
san216

Reputation: 95

C++ function returning by value can return rvalue reference?

Score: 1

Views: 155

Answers: 2

Read More
Max Cury
Max Cury

Reputation: 55

How to use move semantics in a loop and avoid copying?

Score: -1

Views: 179

Answers: 2

Read More
Laith
Laith

Reputation: 1326

What makes moving objects faster than copying?

Score: 69

Views: 31133

Answers: 3

Read More
Mathieu
Mathieu

Reputation: 316

overwrite std::vector<T> with another std::vector<T> efficiently

Score: 2

Views: 159

Answers: 1

Read More
Nezquick
Nezquick

Reputation: 475

What is left in a variable after using std::move on it?

Score: 22

Views: 9278

Answers: 4

Read More
tux Neoh
tux Neoh

Reputation: 79

If only the virtual destructor is declared as default, Is the copy constructor implicitly generated?

Score: 2

Views: 120

Answers: 2

Read More
bustus_primus
bustus_primus

Reputation: 61

std::move a boost::flat_map of unique_ptr

Score: 1

Views: 41

Answers: 0

Read More
Andrey Rubliov
Andrey Rubliov

Reputation: 1597

C++ passing a string to class setter function

Score: 1

Views: 106

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: 148

Answers: 0

Read More
DarioZ
DarioZ

Reputation: 29

compiler does not complain when I do std::move of a const reference

Score: 0

Views: 52

Answers: 0

Read More
Pavel Sh
Pavel Sh

Reputation: 79

How to erase an element from a vector using a std::move_iterator?

Score: 0

Views: 97

Answers: 1

Read More
DipStax
DipStax

Reputation: 502

Lambda capture with std::move and this

Score: 1

Views: 314

Answers: 1

Read More
Matt
Matt

Reputation: 189

C++20 Compiler Error in Visual Studio 2022 Community: Resolving Internal Error C1001

Score: 1

Views: 2025

Answers: 1

Read More
metamorphosis
metamorphosis

Reputation: 2107

C++ - Interaction between move construction and forwarding

Score: 0

Views: 83

Answers: 1

Read More
LeiXiangyu
LeiXiangyu

Reputation: 53

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

Score: 5

Views: 176

Answers: 1

Read More
GRamon
GRamon

Reputation: 87

How to pass big data from a factory to a constructor with neither dynamic memory nor unnecessary copies?

Score: 2

Views: 138

Answers: 2

Read More
Martin
Martin

Reputation: 9359

Using std::move() when returning a value from a function to avoid to copy

Score: 65

Views: 20422

Answers: 3

Read More
Koban
Koban

Reputation: 523

Returning std::vector with std::move

Score: 35

Views: 24465

Answers: 3

Read More
PreviousPage 1Next