Returns the greater type able to contain the type A and B.
More...
#include </home/runner/work/tfel/tfel/include/TFEL/TypeTraits/Promote.hxx>
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,the | first type |
| B,the | second type |
- Returns
- type, the result
- Precondition
- A and B must fundamental numeric types
- See also
- IsFundamentalNumericType
- Author
- Thomas Helfer
- Date
- 03/05/2006
◆ type
template<typename A, typename B>
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: