#ifndef PYTHONIC_INCLUDE_BUILTIN_BOOL_HPP #define PYTHONIC_INCLUDE_BUILTIN_BOOL_HPP #include "pythonic/include/utils/functor.hpp" #include "pythonic/include/types/tuple.hpp" PYTHONIC_NS_BEGIN namespace builtins { namespace functor { struct bool_ { using callable = void; using type = bool; bool operator()() const; template bool operator()(T const &val) const; template bool operator()(std::tuple const &val) const; template bool operator()(types::array const &val) const; friend std::ostream &operator<<(std::ostream &os, bool_) { return os << "bool"; } }; } } PYTHONIC_NS_END #endif