#include <global_ops_traits.hh>
Public Types | |
typedef operator_traits< Op, traits_lhs_type, traits_rhs_type > | deduced_traits |
typedef deduced_type::lhs_type | lhs_type |
typedef deduced_type::rhs_type | rhs_type |
typedef deduced_traits::ret | ret |
typedef deduced_traits::impl | impl |
deduce_from_traits should generally be used instead of operator_traits. Indeed, it has a handy algorithm to find return types:
1) Convert T1 and T2 to ntg types. 2) Check if traits<T1, T2> is defined. 3) Else, check if traits<T2, T1> is defined AND traits<T2, T1>::commutative is true.
deduce_from_traits defines several types:
Definition at line 174 of file global_ops_traits.hh.