#ifndef PYTHONIC_BUILTIN_LEN_HPP #define PYTHONIC_BUILTIN_LEN_HPP #include "pythonic/include/builtins/len.hpp" #include "pythonic/types/traits.hpp" #include "pythonic/utils/functor.hpp" #include #include PYTHONIC_NS_BEGIN namespace builtins { template long len(std::tuple const &) { return sizeof...(Types); } template typename std::enable_if::value, long>::type len(T const &t) { return t.size(); } } PYTHONIC_NS_END #endif