Multiple Choice
Prior to C++11 the following code created a temporary string object and passed it to push_back, which then copied it into the vector: vector<string> myVector;
MyVector.push_back("message") ;
As of C++11, member function push_back is now overloaded with a version that takes a(n) ________. This allows the preceding call to push_back to take the storage allocated for the temporary string and reuse it directly for the new element in the vector. The temporary string will be destroyed when the function returns, so there's no need for it to keep its content.
A) const pointer
B) rvalue reference
C) rvalue pointer
D) const reference
Correct Answer:

Verified
Correct Answer:
Verified
Q22: Which statement is false:<br>A) A weak_ptr points
Q23: A common example of a variadic template
Q24: A tuple's _ copies a tuple's elements
Q25: A unique_ptr automatically calls _ to free
Q26: Shared_ptrs use _ counting to determine how
Q28: Which of the following statements about regular
Q29: C++11 enables you to define functions and
Q30: The _ operator is particularly useful when
Q31: Which of the following statements is false?<br>A)
Q32: The _ multithreading header contains classes, a