pelib  2.0.0
Derived_from< T, B > Struct Template Reference

#include <constraints.hpp>

List of all members.

Public Member Functions

 Derived_from ()

Static Public Member Functions

static void constraints (T *p)

Detailed Description

template<class T, class B>
struct Derived_from< T, B >

Yields an error if class B is not derived from class T. See http://www.stroustrup.com/bs_faq2.html#constraints

Definition at line 25 of file constraints.hpp.


Constructor & Destructor Documentation

template<class T, class B>
Derived_from< T, B >::Derived_from ( ) [inline]

Definition at line 27 of file constraints.hpp.


Member Function Documentation

template<class T, class B>
static void Derived_from< T, B >::constraints ( T *  p) [inline, static]

Definition at line 26 of file constraints.hpp.


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