diff options
Diffstat (limited to 'src/util.h')
-rw-r--r-- | src/util.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/util.h b/src/util.h index 9fe95e37fd..bb90869962 100644 --- a/src/util.h +++ b/src/util.h @@ -598,6 +598,16 @@ public: return (vSorted[size/2-1] + vSorted[size/2]) / 2; } } + + int size() const + { + return vValues.size(); + } + + std::vector<T> sorted () const + { + return vSorted; + } }; |