Public Types | List of all members
ecvl::arithmetic_superior_type< T, U > Struct Template Reference

#include <type_promotion.h>

Public Types

using type = typename std::conditional_t< std::is_floating_point< T >::value &&std::is_floating_point< U >::value, larger_arithmetic_type_t< T, U >, std::conditional_t< std::is_floating_point< T >::value, T, std::conditional_t< std::is_floating_point< U >::value, U, larger_arithmetic_type_t< T, U > >> >
 

Detailed Description

template<typename T, typename U>
struct ecvl::arithmetic_superior_type< T, U >

Definition at line 36 of file type_promotion.h.

Member Typedef Documentation

◆ type

template<typename T, typename U>
using ecvl::arithmetic_superior_type< T, U >::type = typename std::conditional_t<std::is_floating_point<T>::value && std::is_floating_point<U>::value, larger_arithmetic_type_t<T, U>, std::conditional_t<std::is_floating_point<T>::value, T, std::conditional_t<std::is_floating_point<U>::value, U, larger_arithmetic_type_t<T, U> >> >

Definition at line 41 of file type_promotion.h.


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