%PDF- %PDF-
| Direktori : /usr/lib/python3/dist-packages/pythran/pythonic/include/builtins/dict/ |
| Current File : //usr/lib/python3/dist-packages/pythran/pythonic/include/builtins/dict/get.hpp |
#ifndef PYTHONIC_INCLUDE_BUILTIN_DICT_GET_HPP
#define PYTHONIC_INCLUDE_BUILTIN_DICT_GET_HPP
#include "pythonic/include/types/dict.hpp"
#include "pythonic/include/types/NoneType.hpp"
#include "pythonic/include/utils/functor.hpp"
PYTHONIC_NS_BEGIN
namespace builtins
{
namespace dict
{
template <class K, class V, class W, class X>
typename __combined<V, X>::type get(types::dict<K, V> const &d, W const &k,
X const &default_);
template <class K, class V, class W>
types::none<V> get(types::dict<K, V> const &d, W const &k);
template <class W, class X>
X get(types::empty_dict const &, W const &, X const &default_);
// For typing only
template <class T, class I, class J>
typename __combined<T, J>::type get(::dict_container<T>, I, J);
DEFINE_FUNCTOR(pythonic::builtins::dict, get);
}
}
PYTHONIC_NS_END
#endif