%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /proc/985914/root/usr/lib/python3/dist-packages/pythran/pythonic/include/operator_/
Upload File :
Create Path :
Current File : //proc/985914/root/usr/lib/python3/dist-packages/pythran/pythonic/include/operator_/itruediv.hpp

#ifndef PYTHONIC_INCLUDE_OPERATOR_ITRUEDIV_HPP
#define PYTHONIC_INCLUDE_OPERATOR_ITRUEDIV_HPP

#include "pythonic/include/utils/functor.hpp"
#include "pythonic/include/operator_/truediv.hpp"

PYTHONIC_NS_BEGIN

namespace operator_
{
  template <class A, class B>
  auto itruediv(A const &a, B &&b) -> decltype(truediv(a, std::forward<B>(b)));

  template <class A, class B>
  auto itruediv(A &a, B &&b) -> typename std::enable_if<
      std::is_same<A, decltype(truediv(a, std::forward<B>(b)))>::value,
      A &>::type;

  template <class A, class B>
  auto itruediv(A &a, B &&b) -> typename std::enable_if<
      !std::is_same<A, decltype(truediv(a, std::forward<B>(b)))>::value,
      decltype(truediv(a, std::forward<B>(b)))>::type;

  DEFINE_FUNCTOR(pythonic::operator_, itruediv);
}
PYTHONIC_NS_END

#endif

Zerion Mini Shell 1.0