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.
Definition at line 299 of file template_constraints.h.
const bool types_are_equal< T, U >::value = false [static] |
Definition at line 301 of file template_constraints.h.
documentation generated on Fri Feb 3 2012 06:04:13 by
doxygen
1.7.2