mirror of
https://github.com/pybind/pybind11.git
synced 2026-06-08 15:29:45 +00:00
New automatic return value policy for cat() and make_tuple(), fixed an ambiguity issue
This commit is contained in:
@@ -418,6 +418,9 @@ functions. The default policy is :enum:`return_value_policy::automatic`.
|
||||
| :enum:`return_value_policy::automatic` | Automatic: copy objects returned as values and take ownership of |
|
||||
| | objects returned as pointers |
|
||||
+--------------------------------------------------+---------------------------------------------------------------------------+
|
||||
| :enum:`return_value_policy::automatic_reference` | Automatic variant 2 : copy objects returned as values and reference |
|
||||
| | objects returned as pointers |
|
||||
+--------------------------------------------------+---------------------------------------------------------------------------+
|
||||
| :enum:`return_value_policy::copy` | Create a new copy of the returned object, which will be owned by Python |
|
||||
+--------------------------------------------------+---------------------------------------------------------------------------+
|
||||
| :enum:`return_value_policy::take_ownership` | Reference the existing object and take ownership. Python will call |
|
||||
|
||||
Reference in New Issue
Block a user