chsvlib
chsv helper source code
AutoData< ValueType > Struct Template Reference

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>

Inheritance diagram for AutoData< ValueType >:
Collaboration diagram for AutoData< ValueType >:

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.
 
AutoDataoperator= (AutoData &&rrRight)
 Standard move assignment operator.
 

Detailed Description

template<class ValueType = void>
struct Chusov::Memory::AutoData< ValueType >

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.

Template Parameters
ValueTypeis a type of objects a managed pointer is to point to.

The documentation for this struct was generated from the following file: