Reference documentation for deal.II version 9.1.1
\(\newcommand{\dealcoloneq}{\mathrel{\vcenter{:}}=}\)
types_are_equal< T, U > Struct Template Reference

#include <deal.II/base/template_constraints.h>

Inherits is_same< T, U >.

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>
{
if (std::is_same<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.

Deprecated:
Use the standard library type trait std::is_same instead of this class.

Definition at line 441 of file template_constraints.h.


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