Photon Engine 2.0.0-beta
A physically based renderer.
Loading...
Searching...
No Matches
ph::CCanMultiply Concept Reference

Check if instances of types can be multiplied together. More...

#include <traits.h>

Concept definition

template<typename A, typename B, typename C>
concept ph::CCanMultiply = requires (A a, B b, C c)
{
c = a * b;
}
Check if instances of types can be multiplied together.
Definition traits.h:43

Detailed Description

Check if instances of types can be multiplied together.

Checks whether the instances of the involved types can be multiplied together and is capable of assigning the result into an instance of the third type, i.e., able to do C = A * B with corresponding instances.