Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class SortPriority
- {
- public:
- SortPriority();
- bool operator()(InfoPlayer* playerA, InfoPlayer* playerB);
- };
- ========================================================================
- SortPriority::SortPriority() = default;
- bool SortPriority::operator()(InfoPlayer* playerA, InfoPlayer* playerB)
- {
- return playerA->Priority< playerB->Priority;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement