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

13 lines
205 B
C++

#pragma once
#include "utils/crtp.hpp"
template <class Derived>
struct UnaryNegation : public Crtp<Derived>
{
Derived operator-() const
{
return Derived(-this->derived().value);
}
};