9 #ifndef _STRUS_BASE_LOCAL_PTR_HPP_INCLUDED 
   10 #define _STRUS_BASE_LOCAL_PTR_HPP_INCLUDED 
   13 #if __cplusplus >= 201103L 
   14 #define STRUS_USE_STD_UNIQUE_PTR 
   16 #undef STRUS_USE_STD_UNIQUE_PTR 
   21 #if defined STRUS_USE_STD_UNIQUE_PTR 
   23 class local_ptr : 
public std::unique_ptr<T>
 
   26         explicit local_ptr( T* p = 0 ) :std::unique_ptr<T>(p) {}
 
   28 #else //STRUS_USE_STD_UNIQUE_PTR 
   33         explicit local_ptr( T* p = 0 ) :std::auto_ptr<T>(p) {}
 
   35 #endif //STRUS_USE_STD_UNIQUE_PTR 
Definition: local_ptr.hpp:30
local_ptr(T *p=0)
Definition: local_ptr.hpp:33