Reference documentation for deal.II version 9.5.0
\(\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\}}\)
Loading...
Searching...
No Matches
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 669 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)
inlinestaticconstexprprivate

Definition at line 678 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
inlinestaticconstexprprivate

Definition at line 685 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 691 of file numbers.h.


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