xtensor
Loading...
Searching...
No Matches
xt::is_narrowing_conversion< FROM, TO > Struct Template Reference

Public Types

using argument_type = std::decay_t<FROM>
 
using result_type = std::decay_t<TO>
 

Static Public Attributes

static const bool value
 

Detailed Description

template<class FROM, class TO>
struct xt::is_narrowing_conversion< FROM, TO >

Definition at line 620 of file xassign.hpp.

Member Typedef Documentation

◆ argument_type

template<class FROM , class TO >
using xt::is_narrowing_conversion< FROM, TO >::argument_type = std::decay_t<FROM>

Definition at line 622 of file xassign.hpp.

◆ result_type

template<class FROM , class TO >
using xt::is_narrowing_conversion< FROM, TO >::result_type = std::decay_t<TO>

Definition at line 623 of file xassign.hpp.

Member Data Documentation

◆ value

template<class FROM , class TO >
const bool xt::is_narrowing_conversion< FROM, TO >::value
static
Initial value:
= xtl::is_arithmetic<result_type>::value
&& (sizeof(result_type) < sizeof(argument_type)
|| (xtl::is_integral<result_type>::value
&& std::is_floating_point<argument_type>::value))

Definition at line 625 of file xassign.hpp.


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