memgraph/include/storage/model/properties/utils/modulo.hpp

11 lines
186 B
C++
Raw Normal View History

2016-02-21 00:53:09 +08:00
#pragma once
template <class Derived>
struct Modulo
{
friend Derived operator%(const Derived& lhs, const Derived& rhs)
{
return Derived(lhs.value % rhs.value);
}
};