#include <CGAL/CC_safe_handle.h>
template<typename CC_iterator>
class CGAL::CC_safe_handle< CC_iterator >
The class CC_safe_handle
is a helper class that stores an iterator on a Compact_container
(or Concurrent_compact_container
) and is able to know if the pointee has been erased after the creation of the CC_safe_handle
instance. It stores the iterator and the erase counter value of the pointee when the CC_safe_handle
instance was created. It can only be used when the pointee type is a model of the ObjectWithEraseCounter
concept.
- Template Parameters
-
- See also
Compact_container
-
Concurrent_compact_container
◆ CC_safe_handle()
template<typename CC_iterator >
◆ cc_iterator()
template<typename CC_iterator >
◆ is_zombie()
template<typename CC_iterator >
Returns true
if the pointee has been erased, i.e. if the iterator points to a freed object or to another object.