tfel
Loading...
Searching...
No Matches
tfel::typetraits::Promote< A, B > Class Template Reference

Returns the greater type able to contain the type A and B. More...

#include </home/runner/work/tfel/tfel/include/TFEL/TypeTraits/Promote.hxx>

Public Types

using type
 result

Detailed Description

template<typename A, typename B>
class tfel::typetraits::Promote< A, B >

Returns the greater type able to contain the type A and B.

Parameters
A,thefirst type
B,thesecond type
Returns
type, the result
Precondition
A and B must fundamental numeric types
See also
IsFundamentalNumericType
Author
Thomas Helfer
Date
03/05/2006

Member Typedef Documentation

◆ type

template<typename A, typename B>
using tfel::typetraits::Promote< A, B >::type
Initial value:
A,
B,
std::numeric_limits<A>::is_signed,
std::numeric_limits<B>::is_signed>::type
Choose the largest of the two types, taking their signess into account.
Definition Promote.ixx:261

result


The documentation for this class was generated from the following files: