AUI Framework  develop
Cross-platform base for C++ UI apps
Loading...
Searching...
No Matches
aui::noncopyable Struct Reference

Forbids copy of your class. More...

#include <AUI/Traits/values.h>

Public Member Functions

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

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

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