Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- auto f = [](const c_appevent &a,const c_appevent &b)->bool
- {
- if(a.m_priority < b.m_priority) return true;
- if(a.m_priority == b.m_priority) return a.idx<b.idx;
- return false;
- };
- std::sort(evts.begin(),evts.end(),f);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement