AUI Framework  master
Cross-platform module-based framework for developing C++20 desktop applications
aui::noncopyable Struct Reference

Forbids copy of your class. More...

Detailed Description

Forbids copy of your class.

class MyObject: public aui::noncopyable {
private:
void* mResource;
}
...
MyObject obj1;
MyObject obj2 = obj1; // error
MyObject obj3 = std::move(obj); // but this one is ok
Forbids copy of your class.
Definition: values.h:40
Examples
/github/workspace/aui.core/src/AUI/Common/AObject.h.

Public Member Functions

 noncopyable (const noncopyable &)=delete
 
noncopyableoperator= (const noncopyable &)=delete
 

#include <AUI/Traits/values.h>


The documentation for this struct was generated from the following file:
Inheritance diagram for aui::noncopyable: