Which of the following is correct syntax of making heap from a vector v?
(a) make_heap(v.elements);
(b) make_heap(v);
(c) make_heap(v.end(), v.begin());
(d) make_heap(v.begin(), v.end());
This question was posed to me during an interview.
My question is from STL in portion Class Hierarchies, Library & Containers of C++