abcabc-6368 avatar image
0 Votes"
abcabc-6368 asked YujianYao-MSFT commented

Can I get real time use case for using dymamic pointers?


Generally we would use dynamic pointers when the number of elements to allocate is not known in advance. We can use STL vector/list/set for storing list of objects.

Can I get any use case for dynamic pointers? For e.g. to create log file in C++ do we need to use dynamic pointers or stack memory is enough?

Please suggest any other use cases for dynamic pointers. I could not imagine the use cases.

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @abcabc-6368,

I suggest you read the issue carefully, it might help you.

0 Votes 0 ·

0 Answers