Reference documentation for deal.II version Git f6c556c4e9 2020-09-24 06:57:19 +0200
\(\newcommand{\dealvcentcolon}{\mathrel{\mathop{:}}}\) \(\newcommand{\dealcoloneq}{\dealvcentcolon\mathrel{\mkern-1.2mu}=}\) \(\newcommand{\jump}[1]{\left[\!\left[ #1 \right]\!\right]}\) \(\newcommand{\average}[1]{\left\{\!\left\{ #1 \right\}\!\right\}}\)
Static Public Attributes | Static Private Member Functions | List of all members
internal::is_explicitly_convertible< From, To > Struct Template Reference

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

Static Public Attributes

static bool const value = test<From, To>(0)
 

Static Private Member Functions

template<typename T >
static void f (T)
 
template<typename F , typename T >
static constexpr auto test (int) -> decltype(f(static_cast< T >(std::declval< F >())), true)
 
template<typename F , typename T >
static constexpr auto test (...) -> bool
 

Detailed Description

template<typename From, typename To>
struct internal::is_explicitly_convertible< From, To >

A test to see if it is possible to convert one number type to the other.

Definition at line 660 of file numbers.h.

Member Function Documentation

◆ f()

template<typename From , typename To >
template<typename T >
static void internal::is_explicitly_convertible< From, To >::f ( )
staticprivate

◆ test() [1/2]

template<typename From , typename To >
template<typename F , typename T >
static constexpr auto internal::is_explicitly_convertible< From, To >::test ( int  ) -> decltype(f(static_cast<T>(std::declval<F>())), true)
inlinestaticprivate

Definition at line 669 of file numbers.h.

◆ test() [2/2]

template<typename From , typename To >
template<typename F , typename T >
static constexpr auto internal::is_explicitly_convertible< From, To >::test (   ...) -> bool
inlinestaticprivate

Definition at line 676 of file numbers.h.

Member Data Documentation

◆ value

template<typename From , typename To >
bool const internal::is_explicitly_convertible< From, To >::value = test<From, To>(0)
static

Definition at line 682 of file numbers.h.


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