Lines Matching defs:policy
295 static handle cast_impl(CType *src, return_value_policy policy, handle parent) {
296 switch (policy) {
317 static handle cast(Type &&src, return_value_policy /* policy */, handle parent) {
321 static handle cast(const Type &&src, return_value_policy /* policy */, handle parent) {
325 static handle cast(Type &src, return_value_policy policy, handle parent) {
326 if (policy == return_value_policy::automatic || policy == return_value_policy::automatic_reference)
327 policy = return_value_policy::copy;
328 return cast_impl(&src, policy, parent);
331 static handle cast(const Type &src, return_value_policy policy, handle parent) {
332 if (policy == return_value_policy::automatic || policy == return_value_policy::automatic_reference)
333 policy = return_value_policy::copy;
334 return cast(&src, policy, parent);
337 static handle cast(Type *src, return_value_policy policy, handle parent) {
338 return cast_impl(src, policy, parent);
341 static handle cast(const Type *src, return_value_policy policy, handle parent) {
342 return cast_impl(src, policy, parent);
369 static handle cast(const MapType &src, return_value_policy policy, handle parent) {
370 switch (policy) {
524 static handle cast(const Type &src, return_value_policy /* policy */, handle /* parent */) {
528 static handle cast(const Type *src, return_value_policy policy, handle parent) { return cast(*src, policy, parent); }
580 static handle cast(const Type &src, return_value_policy /* policy */, handle /* parent */) {