mirror of
https://github.com/wolfpld/tracy
synced 2025-04-29 20:33:52 +00:00
Add ensure_sorted() method for SortedVector.
This commit is contained in:
parent
404168ec69
commit
befeffb61e
@ -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<class Compare>
|
||||
void sort( Compare comp )
|
||||
|
Loading…
x
Reference in New Issue
Block a user