Examlex

Solved

Prior to C++11 the Following Code Created a Temporary String

question 27

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.


Definitions:

Indorsed

means to have a signature added to the back of a financial instrument, thereby authorizing its use or transfer to another party.

Order Paper

A financial instrument made out to a specific individual or entity and can only be transferred to a new holder when endorsed by the named party.

Special Indorsement

An endorsement on a negotiable instrument, such as a check, that specifies the person to whom or to whose order the money is to be paid.

Bearer Paper

A negotiable instrument or document of title that entitles the holder or bearer to the rights specified in the document, without needing to prove ownership.

Related Questions