mirror of
https://github.com/wolfpld/tracy.git
synced 2025-03-20 07:40:02 +08:00
Add ensure_sorted() method for SortedVector.
This commit is contained in:
@@ -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 )
|
||||
|
||||
Reference in New Issue
Block a user