Lines Matching refs:Type
67 template <typename Type, typename Key> struct set_caster {
68 using type = Type;
101 template <typename Type, typename Key, typename Value> struct map_caster {
140 PYBIND11_TYPE_CASTER(Type, _("Dict[") + key_conv::name + _(", ") + value_conv::name + _("]"));
143 template <typename Type, typename Value> struct list_caster {
162 template <typename T = Type,
164 void reserve_maybe(sequence s, Type *) { value.reserve(s.size()); }
183 PYBIND11_TYPE_CASTER(Type, _("List[") + value_conv::name + _("]"));
186 template <typename Type, typename Alloc> struct type_caster<std::vector<Type, Alloc>>
187 : list_caster<std::vector<Type, Alloc>, Type> { };
189 template <typename Type, typename Alloc> struct type_caster<std::deque<Type, Alloc>>
190 : list_caster<std::deque<Type, Alloc>, Type> { };
192 template <typename Type, typename Alloc> struct type_caster<std::list<Type, Alloc>>
193 : list_caster<std::list<Type, Alloc>, Type> { };
243 template <typename Type, size_t Size> struct type_caster<std::array<Type, Size>>
244 : array_caster<std::array<Type, Size>, Type, false, Size> { };
246 template <typename Type> struct type_caster<std::valarray<Type>>
247 : array_caster<std::valarray<Type>, Type, true> { };
366 using Type = V<Ts...>;
367 PYBIND11_TYPE_CASTER(Type, _("Union[") + detail::concat(make_caster<Ts>::name...) + _("]"));