35 #ifndef _BLAZE_MATH_TRAITS_DIVTRAIT_H_ 36 #define _BLAZE_MATH_TRAITS_DIVTRAIT_H_ 117 template<
typename T1
125 struct DivType {
using Type = decltype( std::declval<T1>() / std::declval<T2>() ); };
131 struct Failure {
using Type = INVALID_TYPE; };
155 template<
typename T >
156 struct DivTrait< T, T, EnableIf_< IsBuiltin<T> > >
172 template<
typename T1,
typename T2 >
173 struct DivTrait< complex<T1>, T2, EnableIf_< IsBuiltin<T2> > >
189 template<
typename T1,
typename T2 >
190 struct DivTrait< T1, complex<T2>, EnableIf_< IsBuiltin<T1> > >
206 template<
typename T1,
typename T2 >
207 struct DivTrait< complex<T1>, complex<T2> >
224 template<
typename T1,
typename T2 >
226 , EnableIf_< And< Or< IsCustom<T1>, IsInitializer<T1>, IsView<T1> >
227 , Not< Or< IsCustom<T2>, IsInitializer<T2>, IsView<T2> > > > > >
244 template<
typename T1,
typename T2 >
246 , EnableIf_< And< Not< Or< IsCustom<T1>, IsInitializer<T1>, IsView<T1> > >
247 , Or< IsCustom<T2>, IsInitializer<T2>, IsView<T2> > > > >
264 template<
typename T1,
typename T2 >
266 , EnableIf_< And< Or< IsCustom<T1>, IsInitializer<T1>, IsView<T1> >
267 , Or< IsCustom<T2>, IsInitializer<T2>, IsView<T2> > > > >
291 template<
typename T1,
typename T2 >
Header file for the IsInitializer type trait.
Compile time check for volatile data types.The IsVolatile type trait tests whether or not the given t...
Definition: IsVolatile.h:75
typename Decay< T >::Type Decay_
Auxiliary alias declaration for the Decay type trait.The Decay_ alias declaration provides a convenie...
Definition: Decay.h:98
Header file for the And class template.
Header file for the IsVolatile type trait.
Header file for the Decay type trait.
Header file for the IsCustom type trait.
Namespace of the Blaze C++ math library.
Definition: Blaze.h:58
Header file for the If class template.
Header file for the Or class template.
Header file for the Not class template.
Header file for the EnableIf class template.
typename DivTrait< T1, T2 >::Type DivTrait_
Auxiliary alias declaration for the DivTrait class template.The DivTrait_ alias declaration provides ...
Definition: DivTrait.h:292
Header file for the IsView type trait.
Header file for the CommonType type trait.
Header file for the HasDiv type trait.
Header file for the IsConst type trait.
Utility type for generic codes.
typename If< T1, T2, T3 >::Type If_
Auxiliary alias declaration for the If class template.The If_ alias declaration provides a convenient...
Definition: If.h:154
Header file for the IsReference type trait.
Compile time check for constant data types.The IsConst type trait tests whether or not the given temp...
Definition: IsConst.h:75
Base template for the DivTrait class.
Definition: DivTrait.h:120
Header file for the IsBuiltin type trait.
typename CommonType< T... >::Type CommonType_
Auxiliary alias declaration for the CommonType type trait.The CommonType_ alias declaration provides ...
Definition: CommonType.h:95
Compile time type check.This class tests whether the given template parameter T is a reference type (...
Definition: IsReference.h:75
Header file for the complex data type.