mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-22 14:44:34 +00:00
Implement erase() in SortedVector.
Requires vector to be sorted, in order to not bother with recalculating sortedEnd value.
This commit is contained in:
parent
710a488af0
commit
bb30333947
@ -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(); }
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user