Match the member functions of vectors on left with the correct description on right. Hint: Please follow the exact wording in the read. erase emplace_back capacity assign empty [Choose] [Choose] Returns the number of elements in the vector. Removes all elements from the vector (which are destroyed), leaving the container with a size of 0. Removes from the vector either a single element (position) or a range of elements ([first, last)). Assigns new contents to the vector, replacing its current contents, and modifying its size accordingly. Construct and insert element at the end Return size of allocated storage capacity Returns whether the vector is empty (i.e. whether its size is 0). [Choose] [Choose ]

icon
Related questions
Question

C++ 

Match the member functions of vectors on left with the correct description on right.
Hint: Please follow the exact wording in the read.
erase
emplace_back
capacity
assign
empty
49
F4
Q Search
DII
F5
[Choose ]
[Choose ]
Returns the number of elements in the vector.
Removes all elements from the vector (which are destroyed), leaving the container with a size of 0.
Removes from the vector either a single element (position) or a range of elements ([first,last)).
Assigns new contents to the vector, replacing its current contents, and modifying its size accordingly.
Construct and insert element at the end
Return size of allocated storage capacity
Returns whether the vector is empty (i.e. whether its size is 0).
[Choose ]
[Choose ]
F6
OLD
F7
X
CEON
PrtScn
F8
Home
F9
End
F10
PgUp
F11
C
PgDn
Transcribed Image Text:Match the member functions of vectors on left with the correct description on right. Hint: Please follow the exact wording in the read. erase emplace_back capacity assign empty 49 F4 Q Search DII F5 [Choose ] [Choose ] Returns the number of elements in the vector. Removes all elements from the vector (which are destroyed), leaving the container with a size of 0. Removes from the vector either a single element (position) or a range of elements ([first,last)). Assigns new contents to the vector, replacing its current contents, and modifying its size accordingly. Construct and insert element at the end Return size of allocated storage capacity Returns whether the vector is empty (i.e. whether its size is 0). [Choose ] [Choose ] F6 OLD F7 X CEON PrtScn F8 Home F9 End F10 PgUp F11 C PgDn
Expert Solution
steps

Step by step

Solved in 3 steps

Blurred answer