1 #ifndef PYTHONIC_INCLUDE_OPERATOR_NEG_HPP 2 #define PYTHONIC_INCLUDE_OPERATOR_NEG_HPP 3 4 #include "pythonic/include/utils/functor.hpp" 5 6 PYTHONIC_NS_BEGIN 7 8 namespace operator_ 9 { 10 11 template <class A> 12 auto neg(A &&a) -> decltype(-std::forward<A>(a)); 13 14 DEFINE_FUNCTOR(pythonic::operator_, neg); 15 } 16 PYTHONIC_NS_END 17 18 #endif 19