adspace
Using a smart pointer can we iterate through a container?
Answer Posted / Mulkesh Kumar
Yes, you can iterate through a container using smart pointers in C++. The standard containers such as std::vector, std::list, and std::map provide an iterator interface that can be used with smart pointers like std::shared_ptr and std::unique_ptr.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers