memgraph/storage/model/properties/utils/unary_negation.hpp
2016-02-20 17:53:09 +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);
}
};