0

Hello,

I need to overload my comparison operators such as == and < so that I can use things such as std::sort and std::unique on a vector of some user defined classes. I know how to overload them globally. The problem is I need to overload these operators as member functions and I am kind of stuck. I am assuming it is a fairly simple problem. Any help would be great, thank you!

Cameron

2
Contributors
2
Replies
3
Views
8 Years
Discussion Span
Last Post by cbattagler
0

Thank you very much. I actually found it on google right before I looked on here again for a reply. The joys of not realizing a search term until you type it in as a title of a post. :)

Thanks again,

Cameron

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.