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.