#ifndef PYTHONIC_OPERATOR_IS_HPP #define PYTHONIC_OPERATOR_IS_HPP #include "pythonic/include/operator_/is_.hpp" #include "pythonic/utils/functor.hpp" #include "pythonic/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))) { return builtins::id(std::forward(a)) == builtins::id(std::forward(b)); } } PYTHONIC_NS_END #endif