#ifndef PYTHONIC_INCLUDE_OPERATOR_IS_HPP #define PYTHONIC_INCLUDE_OPERATOR_IS_HPP #include "pythonic/include/utils/functor.hpp" #include "pythonic/include/builtins/id.hpp" PYTHONIC_NS_BEGIN namespace operator_ { template auto is_(A &&a, B &&b) -> decltype(builtins::id(std::forward(a)) == builtins::id(std::forward(b))); DEFINE_FUNCTOR(pythonic::operator_, is_); } PYTHONIC_NS_END #endif