Noncopyable is a handy utility mix-in base class that makes any class derived from it non-copyable.
Rather than explicitly disabling the copy constructor and assignment operator for a class by declaring them private and leaving them unimplemented, deriving from this class has the same effect. The compiler cannot generate a copy constructor or assignment operator for a class derived from Noncopyable because Noncopyable's are private and unimplemented.
#include <Noncopyable.h>
Protected Member Functions |
|
Noncopyable () | |
~Noncopyable () |
Noncopyable | ( | ) | [inline, protected] |
{};
~Noncopyable | ( | ) | [inline, protected] |
{};