interval map: clean map on destruction
parent
ab762eb9bc
commit
ddd047e82f
|
@ -11,6 +11,10 @@ class IntervalMap
|
|||
{
|
||||
|
||||
public:
|
||||
~IntervalMap(){
|
||||
treemap.clear();
|
||||
}
|
||||
|
||||
void insert(int start, int end, V value)
|
||||
{
|
||||
if (start >= end)
|
||||
|
|
Loading…
Reference in New Issue