July 2015
Intermediate to advanced
558 pages
13h 31m
English
a. Your own copy constructor
b. Your own assignment operator
c. Both a and b
d. Either a or b
String has both copy and move constructors, which of the following does not invoke a move constructor:a. String s1(getName());
b. String s2(s1);
c. String s2(std::move(s1));
d. String s3("Hello");
std::move function is to:a. Move contents of its argument out
b. Create an lvalue reference from an rvalue reference
c. Create an xvalue from an lvalue expression
d. Swap contents of its argument with another object
a. return std::string("Hello");
b. ...
Read now
Unlock full access