| Server IP : 217.160.0.135 / Your IP : 216.73.217.85 Web Server : Apache System : Linux www 6.18.52-i1-ampere #1203 SMP Mon Sep 14 18:29:59 CEST 2026 aarch64 User : sws1074145052 ( 1074145052) PHP Version : 8.3.32 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /usr/lib/python3/dist-packages/pythran/pythonic/builtins/pythran/ |
Upload File : |
#ifndef PYTHONIC_BUILTIN_PYTHRAN_STATIC_LIST_HPP
#define PYTHONIC_BUILTIN_PYTHRAN_STATIC_LIST_HPP
#include "pythonic/include/builtins/pythran/static_list.hpp"
#include "pythonic/builtins/list.hpp"
#include "pythonic/types/tuple.hpp"
#include "pythonic/utils/functor.hpp"
PYTHONIC_NS_BEGIN
namespace builtins
{
namespace pythran
{
template <class T, size_t N>
types::static_list<T, N> static_list(types::array<T, N> const &other)
{
return other.template to_array<types::list_version>();
}
template <class T, size_t N>
types::static_list<T, N> static_list(types::array<T, N> &other)
{
return other.template to_array<types::list_version>();
}
template <class T, size_t N>
types::static_list<T, N> static_list(types::array<T, N> &&other)
{
return other.template to_array<types::list_version>();
}
template <class T>
auto static_list(T &&other)
-> decltype(pythonic::builtins::functor::list{}(std::forward<T>(other)))
{
return pythonic::builtins::functor::list{}(std::forward<T>(other));
}
}
}
PYTHONIC_NS_END
#endif