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

Check if instances of types can be divided. More...

#include <traits.h>

Concept definition

template<typename A, typename B, typename C>
concept ph::CCanDivide = requires (A a, B b, C c)
{
c = a / b;
}
Check if instances of types can be divided.
Definition traits.h:55

Detailed Description

Check if instances of types can be divided.

Checks whether the instances of the involved types can be divided 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.