memgraph/include/storage/model/properties/utils/modulo.hpp
2016-08-10 09:39:02 +01:00

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);
}
};