-
Notifications
You must be signed in to change notification settings - Fork 1
type_function binary_op
kwikius edited this page Jul 14, 2020
·
6 revisions
| Home | Concepts | TypeTemplates | Types | TypeFunctions | InlineConstants |
binary_op<Lhs,Op,Rhs>;
Type_function to return the type of the result of a binary operation on 2 input types. The type_function is intended to be extended to express the result of operations on UDTs'.
typename | type | notes |
---|---|---|
Lhs | Any | The type of the left operand |
Rhs | Any | The type of the right operand |
Op | operator tag | a tag representing the operation |
R | Any | the type of the result |
V | compile time type | Usually an integer or boolean constant |
Value | type | notes |
---|---|---|
v | V |
type expression | result | notes |
---|---|---|
binary_op< Lhs, Op, Rhs>::type | R | |
binary_op_t<Lhs,Op,Rhs> | R | shortened format |
value expression | result | notes |
---|---|---|
binary_op_v<Lhs,Op,Rhs> | v | compile time constant |