%PDF- %PDF-
Mini Shell

Mini Shell

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

#ifndef PYTHONIC_OPERATOR_IADD_HPP
#define PYTHONIC_OPERATOR_IADD_HPP

#include "pythonic/include/operator_/iadd.hpp"

#define OPERATOR_NAME iadd
#define OPERATOR_SYMBOL +
#define OPERATOR_ISYMBOL +=

#include "pythonic/operator_/icommon.hpp"

#include "pythonic/types/list.hpp"
#include "pythonic/types/set.hpp"
#include "pythonic/types/dict.hpp"

PYTHONIC_NS_BEGIN

namespace operator_
{

  template <class A>
  auto iadd(types::empty_list, types::list<A> const &b) -> decltype(b)
  {
    return b;
  }

  template <class K, class V>
  auto iadd(types::empty_dict, types::dict<K, V> const &b) -> decltype(b)
  {
    return b;
  }

  template <class A>
  auto iadd(types::empty_set, types::set<A> const &b) -> decltype(b)
  {
    return b;
  }
}
PYTHONIC_NS_END

#endif

Zerion Mini Shell 1.0