pelib  2.0.0
Can_compare< T1, T2 > Struct Template Reference

#include <constraints.hpp>

List of all members.

Public Member Functions

 Can_compare ()

Static Public Member Functions

static void constraints (T1 a, T2 b)

Detailed Description

template<class T1, class T2 = T1>
struct Can_compare< T1, T2 >

Yields an error if an instance of T1 cannot be compared (equality, difference and inferiority) to an instance of T2 . See http://www.stroustrup.com/bs_faq2.html#constraints

Definition at line 37 of file constraints.hpp.


Constructor & Destructor Documentation

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

Definition at line 39 of file constraints.hpp.


Member Function Documentation

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

Definition at line 38 of file constraints.hpp.


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