403Webshell
Server IP : 217.160.0.212  /  Your IP : 216.73.216.141
Web Server : Apache
System : Linux www 6.18.51-i1-ampere #1196 SMP Fri Sep 11 20:43:55 CEST 2026 aarch64
User : sws1073854427 ( 1073854427)
PHP Version : 8.4.23
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/utils/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /lib/python3/dist-packages/pythran/pythonic/include/utils/meta.hpp
#ifndef PYTHONIC_INCLUDE_UTILS_META_HPP
#define PYTHONIC_INCLUDE_UTILS_META_HPP

PYTHONIC_NS_BEGIN

namespace utils
{

  template <bool... V>
  struct all_of;

  template <>
  struct all_of<> : std::true_type {
  };

  template <bool V0, bool... V>
  struct all_of<V0, V...> {
    static constexpr bool value = V0 && all_of<V...>::value;
  };

  template <bool V0>
  struct all_of<V0> {
    static constexpr bool value = V0;
  };

  template <bool... V>
  struct any_of;

  template <>
  struct any_of<> : std::false_type {
  };

  template <bool V0, bool... V>
  struct any_of<V0, V...> {
    static constexpr bool value = V0 || any_of<V...>::value;
  };

  template <bool V0>
  struct any_of<V0> {
    static constexpr bool value = V0;
  };

  template <class T0, class... T>
  struct front {
    using type = T0;
  };

  template <size_t... N>
  struct max_element;

  template <size_t N0, size_t... N>
  struct max_element<N0, N...> {
    static constexpr size_t _value = max_element<N...>::value;
    static constexpr size_t _index = max_element<N...>::index;
    static constexpr size_t value = N0 > _value ? N0 : _value;
    static constexpr size_t index = N0 == value ? 0 : 1 + _index;
  };

  template <size_t V0>
  struct max_element<V0> {
    static constexpr size_t value = V0;
    static constexpr size_t index = 0;
  };
}
PYTHONIC_NS_END

#endif

Youez - 2016 - github.com/yon3zu
LinuXploit