11 lines
186 B
C++
11 lines
186 B
C++
#pragma once
|
|
|
|
template <class Derived>
|
|
struct Modulo
|
|
{
|
|
friend Derived operator%(const Derived& lhs, const Derived& rhs)
|
|
{
|
|
return Derived(lhs.value % rhs.value);
|
|
}
|
|
};
|