CrystalSpace

Public API Reference

Main Page   Modules   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

csSafeCopyArrayMemoryAllocator< T, ElementHandler > Class Template Reference

Special allocator for csArray that makes sure that when the array is reallocated that the objects are properly constructed and destructed at their new position. More...

#include <array.h>

List of all members.


Detailed Description

template<class T, class ElementHandler = csArrayElementHandler<T>>
class csSafeCopyArrayMemoryAllocator< T, ElementHandler >

Special allocator for csArray that makes sure that when the array is reallocated that the objects are properly constructed and destructed at their new position.

This is needed for objects that can't be safely moved around in memory (like weak references). This is of course slower and that's the reason that this is not done by default.

Definition at line 229 of file array.h.


The documentation for this class was generated from the following file:
Generated for Crystal Space by doxygen 1.2.18