Noncopyable Class Reference


Detailed Description

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>

Inheritance diagram for Noncopyable:
Inheritance graph
[legend]

List of all members.

Protected Member Functions

  Noncopyable ()
  ~Noncopyable ()

Constructor & Destructor Documentation

Noncopyable ( ) [inline, protected]
{};
~Noncopyable ( ) [inline, protected]
{};

Noncopyable Noncopyable Noncopyable Noncopyable Noncopyable Noncopyable Noncopyable Noncopyable Noncopyable Noncopyable
Noncopyable Noncopyable Noncopyable Noncopyable Noncopyable Noncopyable Noncopyable Noncopyable Noncopyable Noncopyable