Stratax 0.4.0rc1
Loading...
Searching...
No Matches
Promotion.hpp File Reference

Pairwise dtype promotion rules. More...

#include <concepts>
#include <cstddef>
#include <type_traits>
#include <stratax/core/dtypes/DTypeTraits.hpp>
Include dependency graph for Promotion.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  stratax::core::Promote< T, T >
 Preserves a dtype when both operands have the same supported dtype. More...
 
struct  stratax::core::Promote< L, R >
 Promotes two signed integer dtypes to the wider dtype. More...
 

Typedefs

template<typename L , typename R >
using stratax::core::promote_t = typename Promote< std::remove_cvref_t< L >, std::remove_cvref_t< R > >::type
 Convenience alias for the promoted dtype of two types.
 

Detailed Description

Pairwise dtype promotion rules.

Definition in file Promotion.hpp.

Typedef Documentation

◆ promote_t

template<typename L , typename R >
using stratax::core::promote_t = typedef typename Promote< std::remove_cvref_t<L>, std::remove_cvref_t<R> >::type

Convenience alias for the promoted dtype of two types.

cv- and reference qualifiers are removed before promotion.

Definition at line 297 of file Promotion.hpp.