types_are_equal< T, U > Struct Template Reference

List of all members.

Static Public Attributes

static const bool value = false

Detailed Description

template<typename T, typename U>
struct types_are_equal< T, U >

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.


Member Data Documentation

template<typename T , typename U >
const bool types_are_equal< T, U >::value = false [static]

The documentation for this struct was generated from the following file:

deal.II documentation generated on Mon Nov 23 22:58:16 2009 by doxygen 1.6.1