diff --git a/server/TracySortedVector.hpp b/server/TracySortedVector.hpp index 570ebf41..15d20626 100644 --- a/server/TracySortedVector.hpp +++ b/server/TracySortedVector.hpp @@ -86,6 +86,7 @@ public: tracy_force_inline void clear() { v.clear(); sortedEnd = 0; } tracy_force_inline void sort() { sort( CompareDefault() ); } + tracy_force_inline void ensure_sorted() { if( !is_sorted() ) sort(); } template void sort( Compare comp )