memgraph/storage/model/properties/utils/unary_negation.hpp

13 lines
198 B
C++
Raw Normal View History

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