quantity::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<typename U, typename Head, typename Tail>
struct quantity::CheckAgainstAllUnits< U, Loki::Typelist< Head, Tail > >

check a unit U versus all units in AllUnits

specialization for second argument 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 280 of file Quantity.h.


Member Typedef Documentation

template<typename U, typename Head, typename Tail>
typedef BSUtilities::IF<BSUtilities::SameType<U, Head>::sameType, U, typename CheckAgainstAllUnits<U, Tail>::RET >::RET quantity::CheckAgainstAllUnits< U, Loki::Typelist< Head, Tail > >::RET

Definition at line 284 of file Quantity.h.


The documentation for this struct was generated from the following file:
Generated on Mon Jul 27 15:55:47 2009 for Quantities by  doxygen 1.5.3