mirror of
https://github.com/pybind/pybind11.git
synced 2024-11-25 14:45:12 +00:00
changed return_value:: to return_value_policy:: (#672)
* changed return_value:: to return_value_policy:: * Update functions.rst
This commit is contained in:
parent
1d7998e333
commit
e72eaa47d2
@ -90,9 +90,10 @@ The following table provides an overview of available policies:
|
|||||||
+--------------------------------------------------+----------------------------------------------------------------------------+
|
+--------------------------------------------------+----------------------------------------------------------------------------+
|
||||||
| :enum:`return_value_policy::automatic` | **Default policy.** This policy falls back to the policy |
|
| :enum:`return_value_policy::automatic` | **Default policy.** This policy falls back to the policy |
|
||||||
| | :enum:`return_value_policy::take_ownership` when the return value is a |
|
| | :enum:`return_value_policy::take_ownership` when the return value is a |
|
||||||
| | pointer. Otherwise, it uses :enum:`return_value::move` or |
|
| | pointer. Otherwise, it uses :enum:`return_value_policy::move` or |
|
||||||
| | :enum:`return_value::copy` for rvalue and lvalue references, respectively. |
|
| | :enum:`return_value_policy::copy` for rvalue and lvalue references, |
|
||||||
| | See above for a description of what all of these different policies do. |
|
| | respectively. See above for a description of what all of these different |
|
||||||
|
| | policies do. |
|
||||||
+--------------------------------------------------+----------------------------------------------------------------------------+
|
+--------------------------------------------------+----------------------------------------------------------------------------+
|
||||||
| :enum:`return_value_policy::automatic_reference` | As above, but use policy :enum:`return_value_policy::reference` when the |
|
| :enum:`return_value_policy::automatic_reference` | As above, but use policy :enum:`return_value_policy::reference` when the |
|
||||||
| | return value is a pointer. This is the default conversion policy for |
|
| | return value is a pointer. This is the default conversion policy for |
|
||||||
|
Loading…
Reference in New Issue
Block a user