MeshLib C++ Docs
Loading...
Searching...
No Matches
MRUniquePtr.h
Go to the documentation of this file.
1#pragma once
2
3#include <memory>
4
5namespace MR
6{
9
10
13template<typename T>
14struct UniquePtr : std::unique_ptr<T>
15{
16 UniquePtr() noexcept = default;
17 UniquePtr( const UniquePtr& ) noexcept : std::unique_ptr<T>() {}
18 UniquePtr( UniquePtr&& ) noexcept = default;
19 UniquePtr& operator =( const UniquePtr& ) noexcept { return *this; }
20 UniquePtr& operator =( UniquePtr&& ) noexcept = default;
21 UniquePtr& operator =( std::unique_ptr<T>&& b ) noexcept { *static_cast<std::unique_ptr<T>*>(this) = std::move( b ); return *this; }
22};
23
24}
UniquePtr(UniquePtr &&) noexcept=default
UniquePtr & operator=(const UniquePtr &) noexcept
Definition MRUniquePtr.h:19
UniquePtr() noexcept=default
only for bindings generation
Definition MRCameraOrientationPlugin.h:8
Definition MRUniquePtr.h:15