interval map: clean map on destruction

vertex-deduplication
EmaMaker 2023-03-12 22:14:05 +01:00
parent ab762eb9bc
commit ddd047e82f
1 changed files with 4 additions and 0 deletions

View File

@ -11,6 +11,10 @@ class IntervalMap
{ {
public: public:
~IntervalMap(){
treemap.clear();
}
void insert(int start, int end, V value) void insert(int start, int end, V value)
{ {
if (start >= end) if (start >= end)