Which of the following are true about the STL "set" as applied to objects? there has to be an operator< or operator> fun
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
Which of the following are true about the STL "set" as applied to objects? there has to be an operator< or operator> fun
Which of the following are true about the STL "set" as applied to objects? there has to be an operator< or operator> function defined there has to be an operator< or operator< = function defined it arranges its objects hi-to-lo by default if there's an operator<, objects are arranged lo-to-hi; but if there's an operator> they are arranged hi-to-lo it arranges its objects lo-to-hi by default
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!