Share
What are smart pointers in C++?c
Question
can you help me with this question
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
can you help me with this question
Answer ( 1 )
Smart pointers (
std::unique_ptr
,std::shared_ptr
,std::weak_ptr
) automatically manage memory to prevent memory leaks.