CGAL 5.3 - STL Extensions for CGAL
CGAL::Compact_container_base Class Reference

#include <CGAL/Compact_container.h>

Definition

The class Compact_container_base can be used as a base class for your own type T, so that T can be used directly within Compact_container<T, Allocator>.

This class stores a void * pointer only for this purpose, so it may not be the most memory efficient way to achieve this goal. The other ways are to provide in T the necessary member functions so that the template Compact_container_traits<T> works, or to specialize it for the particular type T that you want to use.

Operations

void * for_compact_container () const
 Returns the pointer necessary for Compact_container_traits<T>.
 
void for_compact_container (void *p)
 Sets the pointer necessary for Compact_container_traits<T> to p.