11 #include "interop/config.h"
15 #if defined(__cplusplus) && __cplusplus < 201103L && (!defined(_MSC_VER) || _MSC_VER < 1600) && !defined(HAVE_UNIQUE_PTR)
40 unique_ptr(
const unique_ptr<T>& up) : m_ptr(up.m_ptr){up.m_ptr = 0;}
48 unique_ptr<T>& operator=(
const unique_ptr<T>& up) {m_ptr=up.m_ptr;up.m_ptr = 0;
return *
this;}
55 T* operator->()
const {
return m_ptr;}
60 T& operator*()
const{
return *m_ptr;}
66 bool operator!=(
const unique_ptr<T>& up)
const
68 return m_ptr != up.m_ptr;
75 bool operator!=(
const T* ptr)
const
96 template<
typename T>
using unique_ptr = std::unique_ptr<T>;
std::unique_ptr< T > unique_ptr
Definition: unique_ptr.h:96
Definition: unique_ptr.h:94