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

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

#include <traits.h>

Concept definition

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

Detailed Description

Check if instances of types can be added together.

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