CGAL 5.1 - 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>. More...
 
void *& for_compact_container ()
 Returns a reference to the pointer necessary for Compact_container_traits<T>. More...
 

Member Function Documentation

◆ for_compact_container() [1/2]

void* & CGAL::Compact_container_base::for_compact_container ( )

Returns a reference to the pointer necessary for Compact_container_traits<T>.

◆ for_compact_container() [2/2]

void* CGAL::Compact_container_base::for_compact_container ( ) const

Returns the pointer necessary for Compact_container_traits<T>.