| 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/builtins/dict/ |
Upload File : |
#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