403Webshell
Server IP : 217.160.0.135  /  Your IP : 216.73.216.115
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 :  /lib/python3/dist-packages/pythran/pythonic/include/builtins/pythran/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /lib/python3/dist-packages/pythran/pythonic/include/builtins/pythran/static_list.hpp
#ifndef PYTHONIC_INCLUDE_BUILTIN_PYTHRAN_STATIC_LIST_HPP
#define PYTHONIC_INCLUDE_BUILTIN_PYTHRAN_STATIC_LIST_HPP

#include "pythonic/include/utils/functor.hpp"
#include "pythonic/include/builtins/list.hpp"
#include "pythonic/include/types/tuple.hpp"

PYTHONIC_NS_BEGIN

namespace builtins
{

  namespace pythran
  {
    types::empty_list static_list(std::tuple<> const &other)
    {
      return {};
    }
    template <class T, size_t N>
    types::static_list<T, N> static_list(types::array<T, N> const &other);
    template <class T, size_t N>
    types::static_list<T, N> static_list(types::array<T, N> &other);
    template <class T, size_t N>
    types::static_list<T, N> static_list(types::array<T, N> &&other);

    template <class T>
    auto static_list(T &&other) -> decltype(
        pythonic::builtins::functor::list{}(std::forward<T>(other)));

    template <class T0, class... Tys>
    types::static_list<typename __combined<T0, Tys...>::type,
                       1 + sizeof...(Tys)>
    static_list(std::tuple<T0, Tys...> const &other)
    {
      return static_list(
          types::to_array<typename __combined<T0, Tys...>::type>(other));
    }

    DEFINE_FUNCTOR(pythonic::builtins::pythran, static_list);
  }
}
PYTHONIC_NS_END

#endif

Youez - 2016 - github.com/yon3zu
LinuXploit