A copy constructor, a destructor and an overloaded assignment operator are usually provided as a group for any class that uses dynamically allocated memory. With the addition of move semantics in C++11, you should also provide __________.
A) a move constructor
B) a move assignment operator
C) an overloaded move destructor
D) both a and b
Correct Answer:
Verified
Q1: Each time a new shared_ptr to the
Q3: A unique_ptr automatically calls _ to free
Q4: The _ multithreading header contains class thread
Q5: Weak_ptrs should be used in any situation
Q6: Which statement is false:
A) A weak_ptr points
Q7: The internal pointer is deleted once the
Q8: The _ multithreading header contains classes and
Q9: When the reference count reaches zero, the
Q10: In the following function int square(int value)
{
Return
Q11: Which of the following statements is false?
A)
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents