Mundy: Multibody Nonlocal Dynamics Version of the Day
Loading...
Searching...
No Matches
mundy::ScalarBinaryOpTraits< A, B, Op > Struct Template Reference

Determines whether a binary operation between scalar types A and B is allowed, and its result. More...

#include <ScalarBinaryOpTraits.hpp>

Inheritance diagram for mundy::ScalarBinaryOpTraits< A, B, Op >:
[legend]

Detailed Description

template<typename A, typename B, typename Op = scalar_binary_op::product>
struct mundy::ScalarBinaryOpTraits< A, B, Op >

The primary template exposes no ReturnType: an unspecified mix is rejected at compile time. Specializations supply a ReturnType to permit and shape the result of an operation.

Template Parameters
ALeft-hand scalar type.
BRight-hand scalar type.
OpAn operation tag from scalar_binary_op (defaults to product).