diff options
Diffstat (limited to 'src/std/memory.tpp')
| -rw-r--r-- | src/std/memory.tpp | 9 | 
1 files changed, 3 insertions, 6 deletions
| diff --git a/src/std/memory.tpp b/src/std/memory.tpp index 1bfa473..fdfe72b 100644 --- a/src/std/memory.tpp +++ b/src/std/memory.tpp @@ -68,22 +68,19 @@ UniquePtr<Target> &UniquePtr<Target>::operator=(UniquePtr &&unique_ptr) noexcept  template <class Target>  UniquePtr<Target>::~UniquePtr()  { -	if (this->_target != nullptr) -	{ -		delete this->_target; -	} +	delete _target;  }  template <class Target>  Target UniquePtr<Target>::operator*() const  { -	return *(this->_target); +	return *(_target);  }  template <class Target>  Target *UniquePtr<Target>::operator->() const  { -	return this->_target; +	return _target;  }  template <class Target, typename... Args> | 
