-
-
Save julian-klode/1c41a07b87ddf701f70f89664fc5d327 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <cstdint> | |
#include <tuple> | |
struct priority { | |
int16_t index; | |
uint16_t staticp; | |
uint16_t dynamic; | |
uint16_t padding; | |
bool operator<(const priority &other) const; | |
}; | |
bool priority::operator<(const priority &other) const | |
{ | |
return std::tie(index, staticp, dynamic, padding) < std::tie(other.index, other.staticp, other.dynamic, other.padding); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment