diff --git a/server/TracySortedVector.hpp b/server/TracySortedVector.hpp index 15d20626..39293d60 100644 --- a/server/TracySortedVector.hpp +++ b/server/TracySortedVector.hpp @@ -85,6 +85,12 @@ public: tracy_force_inline void clear() { v.clear(); sortedEnd = 0; } + tracy_force_inline T* erase( T* begin, T* end ) + { + assert( is_sorted() ); + return v.erase( begin, end ); + } + tracy_force_inline void sort() { sort( CompareDefault() ); } tracy_force_inline void ensure_sorted() { if( !is_sorted() ) sort(); }