Free Electron
Friends | List of all members
Final< T > Class Template Reference

Base class that prevents further derivation. More...

#include <Final.h>

Friends

class T
 

Detailed Description

template<typename T>
class Final< T >

Base class that prevents further derivation.

Usage:

class MyFinal: virtual Final< MyFinal >
{
}

By making it virtual, the most derived class calls the constructor, which is hidden from all but the immediate derived class.

Note that this requires changes to the standard that may still be pending. Otherwise, it is an error.


The documentation for this class was generated from the following file: