A multiplicative magma is a magma equipped with the multiplication operator.
Corresponding functor | glas::mult_functor |
S | Type of a set |
A | type of a set convertible to S |
B | type of a set convertible to S |
a | Object of type A |
b | Object of type B |
s | Object of type S |
Name | Expression | Return type |
---|---|---|
Multiplication | a*b | mult_functor<A,B>::result_type, convertible to S |
MultiplicatonAssignment | a*=b | S |
Name | Expression | Precondition | Semantics | Postcondition |
---|---|---|---|---|
Multiplication | a*b | can actually be anything as long as it fulfills the requirements of the multiplication | ||
MultiplicatonAssignment | a*=b | equivalent to a=a*b |
Closure | a*b returns an element of the set S |