Static Public Attributes

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.

Definition at line 299 of file template_constraints.h.


Member Data Documentation

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

Definition at line 301 of file template_constraints.h.


The documentation for this struct was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

deal.II documentation generated on Fri Feb 3 2012 06:04:13 by doxygen 1.7.2