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


Please Help Members By Posting Answers For Below Questions

How c functions prevents rework and therefore saves the programers time as wel as length of the code ?

1164


Can union be self referenced?

1265


What character terminates all character array strings a) b) . c) END

1394


daily Routine of father

1483


What is the latest version on c++?

1205