Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
QTypeTraits::detail::Promoted< T, U, typename > Struct Template Reference

#include <qminmax.h>

+ Collaboration diagram for QTypeTraits::detail::Promoted< T, U, typename >:

Public Types

using type = decltype(T() + U())
 

Detailed Description

template<typename T, typename U, typename = std::enable_if_t<std::is_arithmetic_v<T> && std::is_arithmetic_v<U> && std::is_floating_point_v<T> == std::is_floating_point_v<U> && std::is_signed_v<T> == std::is_signed_v<U> && !std::is_same_v<T, bool> && !std::is_same_v<U, bool> && !std::is_same_v<T, char> && !std::is_same_v<U, char>>>
struct QTypeTraits::detail::Promoted< T, U, typename >

Definition at line 28 of file qminmax.h.

Member Typedef Documentation

◆ type

template<typename T , typename U , typename = std::enable_if_t<std::is_arithmetic_v<T> && std::is_arithmetic_v<U> && std::is_floating_point_v<T> == std::is_floating_point_v<U> && std::is_signed_v<T> == std::is_signed_v<U> && !std::is_same_v<T, bool> && !std::is_same_v<U, bool> && !std::is_same_v<T, char> && !std::is_same_v<U, char>>>
using QTypeTraits::detail::Promoted< T, U, typename >::type = decltype(T() + U())

Definition at line 30 of file qminmax.h.


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