cgv
Loading...
Searching...
No Matches
cgv::type::func::promote< T1, T2 > Struct Template Reference

determine the type that should be used to represent the result of an operator or function applies to two different types More...

#include <promote.h>

Public Types

typedef ctrl::if_< favour_first, T1, T2 >::type type
 

Static Public Attributes

static const bool favour_first
 

Detailed Description

template<typename T1, typename T2>
struct cgv::type::func::promote< T1, T2 >

determine the type that should be used to represent the result of an operator or function applies to two different types

Definition at line 27 of file promote.h.

Member Typedef Documentation

◆ type

template<typename T1 , typename T2 >
typedef ctrl::if_<favour_first,T1,T2>::type cgv::type::func::promote< T1, T2 >::type

Definition at line 31 of file promote.h.

Member Data Documentation

◆ favour_first

template<typename T1 , typename T2 >
const bool cgv::type::func::promote< T1, T2 >::favour_first
static
Initial value:
=
(unsigned int) Promote::promotion_rank<T1>::rank >(unsigned int) Promote::promotion_rank<T2>::rank

Definition at line 29 of file promote.h.


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