The set of operations supported by the unique_ptr class include

A) the dereferencing operators * and ->, the post and pre increment operators ++, and the post and pre decrement operators --.
B) the dereferencing operators * and ->.
C) the assignment operator.
D) the delete operator.
E) None of the above


B) the dereferencing operators * and ->.

Computer Science & Information Technology

You might also like to view...

Given the definitions below. Rewrite the definition of this class so that functions

``` f()const and g(const A& x) are inline. const int x = 17; class A public: A( ); A(int n); int f( ) const; int g(const A& x); private: int i; ``` What will be an ideal response?

Computer Science & Information Technology

Try doing sepia-tint in a range. Change just part of a picture by passing in the start x, start y, end x, and end y.

What will be an ideal response?

Computer Science & Information Technology

Explain the is-a and has-a relationship between classes used in inheritance and in composition.

What will be an ideal response?

Computer Science & Information Technology

Answer the following statements true (T) or false (F)

1) ``` Account account1 = new Account("Jane Green"); passes the string argument"Jane Green" to the Account object’s Account method. ``` 2) An important difference between constructors and methods is that constructors must specify a return type of void. 3) Normally, constructors are declared private. 4) We could use a fully implemented Balance property to ensure that the set accessor’s argument is valid before assigning it to the balance instance variable.

Computer Science & Information Technology