Teonet library  0.4.7
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
teo::unique_raw_ptr Namespace Reference

The unique_raw_ptr::make make unique_ptr from allocated raw pointer, and free this pointer pointer when the unique_ptr does not used more. More...

Data Structures

struct  destroy
 

Functions

template<typename T >
std::unique_ptr< T[], destroy
< T * > > 
make (T *raw_data)
 

Detailed Description

The unique_raw_ptr::make make unique_ptr from allocated raw pointer, and free this pointer pointer when the unique_ptr does not used more.

Function Documentation

template<typename T >
std::unique_ptr<T[], destroy<T*> > teo::unique_raw_ptr::make ( T *  raw_data)