mirror of
https://github.com/RYDE-WORK/pybind11.git
synced 2026-02-07 08:03:16 +08:00
clarification regarding STL container support
This commit is contained in:
parent
a4caa85fc6
commit
44db04f580
@ -357,14 +357,14 @@ Passing STL data structures
|
|||||||
===========================
|
===========================
|
||||||
|
|
||||||
When including the additional header file :file:`pybind11/stl.h`, conversions
|
When including the additional header file :file:`pybind11/stl.h`, conversions
|
||||||
between ``std::vector<>`` and ``std::map<>`` and the Python ``list`` and
|
between ``std::vector<>``, ``std::map<>``, and ``std::map<>`` and the Python
|
||||||
``dict`` data structures are automatically enabled. The types ``std::pair<>``
|
``list``, ``set`` and ``dict`` data structures are automatically enabled. The
|
||||||
and ``std::tuple<>`` are already supported out of the box with just the core
|
types ``std::pair<>`` and ``std::tuple<>`` are already supported out of the box
|
||||||
:file:`pybind11/pybind11.h` header.
|
with just the core :file:`pybind11/pybind11.h` header.
|
||||||
|
|
||||||
.. note::
|
.. note::
|
||||||
|
|
||||||
Arbitrary nesting of any of these types is explicitly permitted.
|
Arbitrary nesting of any of these types is supported.
|
||||||
|
|
||||||
.. seealso::
|
.. seealso::
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user