summaryrefslogtreecommitdiffstats
path: root/contrib/python/pythran/pythran/pythonic/include/builtins/next.hpp
blob: abea2e5ee397fb8e17deb4ee26693fab25f9d715 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#ifndef PYTHONIC_INCLUDE_BUILTIN_NEXT_HPP
#define PYTHONIC_INCLUDE_BUILTIN_NEXT_HPP

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

#include <utility>

PYTHONIC_NS_BEGIN

namespace builtins
{

  template <class T>
  auto next(T &&y) -> decltype(*y);

  DEFINE_FUNCTOR(pythonic::builtins, next);
}
PYTHONIC_NS_END

#endif