summaryrefslogtreecommitdiff
path: root/src/powerlist.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/powerlist.h')
-rw-r--r--src/powerlist.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/powerlist.h b/src/powerlist.h
index 000da15..ffbd6ba 100644
--- a/src/powerlist.h
+++ b/src/powerlist.h
@@ -34,6 +34,15 @@ struct PowerListItem
{
Sample* sample;
float power;
+
+ bool operator<(const PowerListItem& other) const
+ {
+ return power < other.power;
+ }
+ bool operator<(level_t power) const
+ {
+ return this->power < power;
+ }
};
using PowerListItems = std::vector<PowerListItem>;