Services
Discover
Homeschooling
Ask a Question
Log in
Sign up
Filters
Done
Question type:
Essay
Multiple Choice
Short Answer
True False
Matching
Topic
Computing
Study Set
C++ How to Program
Quiz 24: C++11 Additional Features
Path 4
Access For Free
Share
All types
Filters
Study Flashcards
Practice Exam
Learn
Question 21
Multiple Choice
A tuple's ________ copies a tuple's elements into a new tuple of the same type.
Question 22
Multiple Choice
The ________ operator is particularly useful when working with complex template types for which it's often difficult to provide, or even determine, the proper type declaration. Rather than trying to write a complex type declaration, for example, that represents the return type of a function, you can place in the parentheses of this operator an expression that returns the complex type and let the compiler "figure it out."
Question 23
Multiple Choice
A tuple's ________ moves a tuple's elements into a new tuple of the same type.
Question 24
Multiple Choice
Operator ________ enables the compiler to determine an expression's type at compile time.
Question 25
Multiple Choice
In C++11, in a class called Employee that has explicitly defined constructors, you can specify that the default constructor should be generated with the declaration ________.
Question 26
Multiple Choice
In general, move constructors and move assignment operators should not throw exceptions because they're simply moving resources, not allocating new ones. For this reason, both the move constructor and move assignment operator are declared ________ in their prototypes and definitions.
Question 27
Multiple Choice
An rvalue reference is declared as ________ (where T is the type of the object being referenced. to distinguish it from a normal reference ________ (called an lvalue reference) .
Question 28
Multiple Choice
Tuples that contain the same number of members ________.
Question 29
Multiple Choice
An rvalue reference is used to implement move semantics-instead of being ________, the object's state (i.e., its content) is ________, leaving the original in a state that can be properly destructed.
Question 30
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.
Question 31
Multiple Choice
A common example of a variadic template is the C++11's new tuple class (from header <tuple>) , which is a generalization of class template ________.
Question 32
Multiple Choice
A tuple's ________ uses the assignment operator (=) to copy the elements of the tuple in the right operand into a tuple of the same type in the left operand. The element types stored in the constructor argument must be copy assignable.