pelib  2.0.0
Can_multiply< T1, T2, T3 > Struct Template Reference

#include <constraints.hpp>

List of all members.

Public Member Functions

 Can_multiply ()

Static Public Member Functions

static void constraints (T1 a, T2 b, T3 c)

Detailed Description

template<class T1, class T2, class T3 = T1>
struct Can_multiply< T1, T2, T3 >

Yields an error if instances of classes T1 and T2 cannot be multiplied together or if T3 cannot hold the result of multiplication. See http://www.stroustrup.com/bs_faq2.html#constraints

Definition at line 43 of file constraints.hpp.


Constructor & Destructor Documentation

template<class T1 , class T2 , class T3 = T1>
Can_multiply< T1, T2, T3 >::Can_multiply ( ) [inline]

Definition at line 45 of file constraints.hpp.


Member Function Documentation

template<class T1 , class T2 , class T3 = T1>
static void Can_multiply< T1, T2, T3 >::constraints ( T1  a,
T2  b,
T3  c 
) [inline, static]

Definition at line 44 of file constraints.hpp.


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