1
0
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:
Bartosz Taudul 2021-11-14 15:57:20 +01:00
parent 404168ec69
commit befeffb61e
No known key found for this signature in database
GPG Key ID: B7FE2008B7575DF3

View File

@ -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 )