Reference documentation for deal.II version Git 082d75bebd 2019-10-16 19:44:02 +0200
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)

This construct is made possible through the existence of a partial specialization of the class for template arguments that are equal.

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

Definition at line 344 of file template_constraints.h.

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