Question
You have written a class, and you plan to store objects of that class in a vector. If you plan to use the sort () and/or binary_search() functions on the vector's elements, what operator must the class overload?
Step 1
Both functions require a way to compare the elements in the vector to determine their order. Show more…
Show all steps
Your feedback will help us improve your experience
Watch the video solution with this free unlock.
EMAIL
PASSWORD