Skip to content

type_function binary_op

kwikius edited this page Jul 14, 2020 · 6 revisions

| Home | Concepts | TypeTemplates | Types | TypeFunctions | InlineConstants |

Signature

binary_op<Lhs,Op,Rhs>;

Description

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'.

Notation

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
Clone this wiki locally