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

#include <qttypetraits.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 96 of file qttypetraits.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 98 of file qttypetraits.h.


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