What are smart pointers?

Answer Posted / glibwaresoftsolutions

• Smart pointers like std::unique_ptr, std::shared_ptr, and std::weak_ptr manage dynamic memory automatically, preventing memory leaks.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is ctime c++?

856


Why is standard template library used?

797


Define a pointer to a data member of the type pointer to pointer?

774


Why is the function main() special?

869


What is a v-table?

892


What is boyce codd normal form in c++?

915


Write a Program for read a line from file from location N1 to N2 using command line arguments. Eg:exe 10 20 a.c

1046


How do you find out if a linked-list has an end? (I.e. The list is not a cycle)

815


What is the history of c++?

747


What are the extraction and insertion operators in c++?

777


how to connect with oracle 9i with server in socket program in c/c++

2095


How do you clear a map in c++?

828


What is input operator in c++?

800


What do you mean by early binding?

800


Which is not a valid keyword a) public b) protected c) guarded

1007