Static Public Attributes | |
| static const bool | value = false |
A type that can be used to determine whether two types are equal. It allows to write code like
template <typename T> void Vector<T>::some_operation () { if (types_are_equal<T,double>::value == true) call_some_blas_function_for_doubles; else do_it_by_hand; }
This construct is made possible through the existence of a partial specialization of the class for template arguments that are equal.
const bool types_are_equal< T, U >::value = false [static] |
documentation generated on Mon Nov 23 22:58:16 2009 by
doxygen
1.6.1