Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

promote_trait< T1, T2 > Struct Template Reference

#include <Util/Promotions.H>

List of all members.


Detailed Description

template<class T1, class T2>
struct promote_trait< T1, T2 >

Promote from T1 and T2 to a type than can hold T1 * T2.

Basic promotion mechanism: given T1 and T2, TP provides the appropriate type to hold the result of an operation involving T1 and T2. Default is to promote to type T1, that is, no change (this is used when T2 is "weaker" than T1; when T2 is "stronger" that T1, the explicit specialized rules below are used).

Definition at line 67 of file Promotions.H.

Public Types

typedef T1 TP
enum  { willPromote = 0 }


The documentation for this struct was generated from the following file:
Generated on Sun Nov 22 13:46:13 2009 for iLab Neuromorphic Vision Toolkit by  doxygen 1.4.4