xentara-utils v2.0.4
The Xentara Utility Library
|
A class that can be moved but not copied. More...
#include <xentara/utils/tools/Unique.hpp>
Public Member Functions | |
constexpr | Unique () noexcept=default |
Default constructor. | |
constexpr | Unique (Unique &&) noexcept=default |
Move constructor. | |
constexpr Unique & | operator= (Unique &&) noexcept=default |
Move assignment operator. | |
Unique (const Unique &)=delete | |
Deleted copy constructor. | |
Unique & | operator= (const Unique &)=delete |
Deleted assignment operator. | |
A class that can be moved but not copied.
This is an empty class with deleted copy constructor and assignment operator. You can derive from this class to easily make a class uncopyable.
|
constexprdefaultnoexcept |
Default constructor.
|
constexprdefaultnoexcept |
Move constructor.
|
delete |
Deleted copy constructor.
Deleted assignment operator.