Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
pybind11
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
open
pybind11
Commits
baec23c2
Commit
baec23c2
authored
Feb 17, 2017
by
Wenzel Jakob
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
minor stl caster clarifications
parent
e72eaa47
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
docs/advanced/cast/stl.rst
+6
-4
No files found.
docs/advanced/cast/stl.rst
View file @
baec23c2
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment