Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | Related Pages

Quantities::CheckAgainstAllUnits< U, Loki::Typelist< Head, Tail > > Struct Template Reference

check a unit U versus all units in AllUnits More...

#include <Quantity.h>

List of all members.

Public Types

typedef BSUtilities::IF< BSUtilities::SameType<
U, Head >::sameType, U, typename
CheckAgainstAllUnits< U, Tail
>::RET >::RET 
RET


Detailed Description

template<class U, class Head, class Tail>
struct Quantities::CheckAgainstAllUnits< U, Loki::Typelist< Head, Tail > >

check a unit U versus all units in AllUnits

specialization for second parameter being a Typelist; recursive template; uses Czernecki and Eisenecker's IF template to select a return type RET based on whether U and the Head of the Typelist are the same type; if so, U is returned from IF and assigned to the return type RET; of not, the template is recursively called for U and the Tail of the Typelist, and the result of this evaluation is returned.

Definition at line 250 of file Quantity.h.


The documentation for this struct was generated from the following file:
Generated on Sun Jan 15 13:58:00 2006 for Quantity by doxygen 1.3.6