A template of a class specifying std::unique_ptr to manage pointers allocated using one of the allocation functions of the chsvmem.h header, such as AllocateData or AllocateString, automatically deallocating memory pointed to by managed pointers when necessary. pointers using the FreeData function. More...
#include <chsvmem.h>
Public Types | |
typedef std::remove_pointer< ValueType >::type | element_type |
Public Member Functions | |
AutoData (element_type *p=NULL) | |
constructs an AutoData object, possibly initializing it with a pointer to manage. More... | |
AutoData (AutoData &&rrRight) | |
Standard move constructor. | |
AutoData & | operator= (AutoData &&rrRight) |
Standard move assignment operator. | |
A template of a class specifying std::unique_ptr to manage pointers allocated using one of the allocation functions of the chsvmem.h header, such as AllocateData or AllocateString, automatically deallocating memory pointed to by managed pointers when necessary. pointers using the FreeData function.
ValueType | is a type of objects a managed pointer is to point to. |