mirror of https://github.com/CGAL/cgal
add a function to reset a Handle
This commit is contained in:
parent
9694f5b1ce
commit
153832fbba
|
|
@ -75,6 +75,15 @@ class Handle
|
|||
return *this;
|
||||
}
|
||||
|
||||
void reset()
|
||||
{
|
||||
if (PTR)
|
||||
{
|
||||
--PTR->count;
|
||||
PTR=0;
|
||||
}
|
||||
}
|
||||
|
||||
int
|
||||
refs() const { return PTR->count; }
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue