Lines Matching refs:cast
86 static handle cast(T &&src, return_value_policy policy, handle parent) {
91 auto value_ = reinterpret_steal<object>(key_conv::cast(forward_like<T>(value), policy, parent));
122 static handle cast(T &&src, return_value_policy policy, handle parent) {
131 auto key = reinterpret_steal<object>(key_conv::cast(forward_like<T>(kv.first), policy_key, parent));
132 auto value = reinterpret_steal<object>(value_conv::cast(forward_like<T>(kv.second), policy_value, parent));
169 static handle cast(T &&src, return_value_policy policy, handle parent) {
175 auto value_ = reinterpret_steal<object>(value_conv::cast(forward_like<T>(value), policy, parent));
228 static handle cast(T &&src, return_value_policy policy, handle parent) {
232 auto value_ = reinterpret_steal<object>(value_conv::cast(forward_like<T>(value), policy, parent));
266 static handle cast(T_ &&src, return_value_policy policy, handle parent) {
270 return value_conv::cast(*std::forward<T_>(src), policy, parent);
306 /// Visit a variant and cast any found type to Python
315 return make_caster<T>::cast(std::forward<T>(src), policy, parent);
352 // E.g. `py::int_(1).cast<variant<double, int>>()` needs to fill the `int`
361 static handle cast(Variant &&src, return_value_policy policy, handle parent) {