StackOverflow Questions for Tag: unique-ptr

Jay Iuliano
Jay Iuliano

Reputation: 21

How do you call non-virtual, non-const derived class methods from a unique_ptr to base?

Score: 0

Views: 96

Answers: 0

Read More
Romain
Romain

Reputation: 21

Why does the unique_pointer solve the "no matching function for call to 'construct_at'" error?

Score: 0

Views: 23

Answers: 0

Read More
user1899020
user1899020

Reputation: 13575

How to implement make_unique function in C++11?

Score: 37

Views: 61312

Answers: 2

Read More
johnco3
johnco3

Reputation: 2652

Using smart pointers to manage buffers

Score: 5

Views: 4275

Answers: 2

Read More
user27097105
user27097105

Reputation: 3

unique_ptr is not changing object it's pointing to

Score: -4

Views: 124

Answers: 1

Read More
user3690202
user3690202

Reputation: 4075

How can I pass std::unique_ptr into a function

Score: 184

Views: 206967

Answers: 8

Read More
Vaibhav Awale
Vaibhav Awale

Reputation: 1

Using ranges::transform to write to uninitialized memory for trivial types

Score: 0

Views: 55

Answers: 0

Read More
David Partridge
David Partridge

Reputation: 373

How should thread_local unique_ptr<class> be used to prevent memory leaks

Score: 1

Views: 179

Answers: 1

Read More
Max
Max

Reputation: 181

How to allocate for later placement new "as if by new"

Score: 10

Views: 990

Answers: 2

Read More
Eos Pengwern
Eos Pengwern

Reputation: 1547

Detecting the erroneous deletion of a raw pointer

Score: 0

Views: 112

Answers: 2

Read More
Marcus Raty
Marcus Raty

Reputation: 21

C++ implementation of Trie with unique_ptr

Score: 2

Views: 640

Answers: 1

Read More
Involute
Involute

Reputation: 245

Extracting a std::unique_ptr member using std::move(), from a class that is invalid when null: how to avoid invisibly making object invalid?

Score: 1

Views: 102

Answers: 2

Read More
kmiklas
kmiklas

Reputation: 13443

How to create a new value and assign to a private unique_ptr in a class constructor?

Score: 4

Views: 4364

Answers: 1

Read More
Dani
Dani

Reputation: 19

Problem with std::unique_ptr and dangling pointer

Score: -1

Views: 123

Answers: 1

Read More
DoZerg
DoZerg

Reputation: 323

Does std::unique_ptr support fancy pointers?

Score: 1

Views: 156

Answers: 1

Read More
user2924261
user2924261

Reputation: 127

How to resize a vector of vector of unique_ptr?

Score: 6

Views: 6434

Answers: 3

Read More
meetanandkr
meetanandkr

Reputation: 43

Singleton class with std map of unique_ptr is throwing error on compilation

Score: 0

Views: 98

Answers: 1

Read More
StoneThrow
StoneThrow

Reputation: 6285

std::unique_ptr custom deleters seem to need a pointer argument -- is there an alternative that can take a non-pointer argument?

Score: 0

Views: 440

Answers: 1

Read More
Tyler Durden
Tyler Durden

Reputation: 71

No viable conversion from 'unique_ptr<Derived>' to 'unique_ptr<Base>'

Score: 0

Views: 213

Answers: 0

Read More
jsmith
jsmith

Reputation: 127

Can I allocate unique_ptr outside the function?

Score: 0

Views: 92

Answers: 1

Read More
PreviousPage 2Next