Commit baec23c2 by Wenzel Jakob

minor stl caster clarifications

parent e72eaa47
...@@ -5,10 +5,12 @@ Automatic conversion ...@@ -5,10 +5,12 @@ Automatic conversion
==================== ====================
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<>``, ``std::list<>``, ``std::set<>``, and ``std::map<>`` between ``std::vector<>``/``std::list<>``/``std::array<>``,
and the Python ``list``, ``set`` and ``dict`` data structures are automatically ``std::set<>``/``std::unordered_set<>``, and
enabled. The types ``std::pair<>`` and ``std::tuple<>`` are already supported ``std::map<>``/``std::unordered_map<>`` and the Python ``list``, ``set`` and
out of the box with just the core :file:`pybind11/pybind11.h` header. ``dict`` data structures are automatically enabled. The types ``std::pair<>``
and ``std::tuple<>`` are already supported out of the box with just the core
:file:`pybind11/pybind11.h` header.
The major downside of these implicit conversions is that containers must be The major downside of these implicit conversions is that containers must be
converted (i.e. copied) on every Python->C++ and C++->Python transition, which converted (i.e. copied) on every Python->C++ and C++->Python transition, which
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment