Answer the following statements true (T) or false (F)
1. In C++11 you can use smart pointers to dynamically allocate memory and not worry about deleting the memory when you are finished using it.
2. The weak_ptr can share ownership of a piece of dynamically allocated memory.
3. The unique_ptr is the sole owner of a piece of dynamically allocated memory.
4. To use any of the smart pointers in C++11 you must use the following directive in the header file:
#include
1. T
2. F
3. T
4. T
Computer Science & Information Technology
You might also like to view...
Which of the following is a link-state routing protocol that uses a metric of hops?
A) IS-IS B) OSPF C) EIGRP D) RIP
Computer Science & Information Technology
Which of the following addresses is a Class B IP address?
A. 126.14.1.7 B. 224.14.9.11 C. 189.77.101.6 D. 211.55.119.7
Computer Science & Information Technology