Lines Matching refs:reference
528 case return_value_policy::reference:
774 // (we specifically check for: has `value_type` and `reference` with `reference = value_type&`): if
778 std::is_same<typename Container::value_type &, typename Container::reference>,
1586 // - T needs to be a non-const, non-pointer, non-reference type
1613 // reference or pointer to a local variable of the type_caster. Basically, only
1614 // non-reference/pointer `type`s and reference/pointers from a type_caster_generic are safe;
1615 // everything else returns a reference/pointer to a local variable.
1664 "Unable to cast type to reference: value is local to type caster");
1679 policy = std::is_pointer<T>::value ? return_value_policy::reference : return_value_policy::copy;
1697 // Move into a temporary and return that, because the reference may be a local value of `conv`
1735 // Trampoline use: for reference/pointer types to value-converted values, we do a value cast, then
1743 // Trampoline use: Having a pybind11::cast with an invalid reference type is going to static_assert, even
1874 /// present, are also in `args` but without a reference).