overview.rst (11986:c12e4625ab56) overview.rst (12037:d28054ac6ec9)
1Overview
2########
3
4.. rubric:: 1. Native type in C++, wrapper in Python
5
6Exposing a custom C++ type using :class:`py::class_` was covered in detail
7in the :doc:`/classes` section. There, the underlying data structure is
8always the original C++ class while the :class:`py::class_` wrapper provides

--- 80 unchanged lines hidden (view full) ---

89| ``ssize_t``, ``size_t`` | Platform-dependent size | :file:`pybind11/pybind11.h` |
90+------------------------------------+---------------------------+-------------------------------+
91| ``float``, ``double`` | Floating point types | :file:`pybind11/pybind11.h` |
92+------------------------------------+---------------------------+-------------------------------+
93| ``bool`` | Two-state Boolean type | :file:`pybind11/pybind11.h` |
94+------------------------------------+---------------------------+-------------------------------+
95| ``char`` | Character literal | :file:`pybind11/pybind11.h` |
96+------------------------------------+---------------------------+-------------------------------+
1Overview
2########
3
4.. rubric:: 1. Native type in C++, wrapper in Python
5
6Exposing a custom C++ type using :class:`py::class_` was covered in detail
7in the :doc:`/classes` section. There, the underlying data structure is
8always the original C++ class while the :class:`py::class_` wrapper provides

--- 80 unchanged lines hidden (view full) ---

89| ``ssize_t``, ``size_t`` | Platform-dependent size | :file:`pybind11/pybind11.h` |
90+------------------------------------+---------------------------+-------------------------------+
91| ``float``, ``double`` | Floating point types | :file:`pybind11/pybind11.h` |
92+------------------------------------+---------------------------+-------------------------------+
93| ``bool`` | Two-state Boolean type | :file:`pybind11/pybind11.h` |
94+------------------------------------+---------------------------+-------------------------------+
95| ``char`` | Character literal | :file:`pybind11/pybind11.h` |
96+------------------------------------+---------------------------+-------------------------------+
97| ``char16_t`` | UTF-16 character literal | :file:`pybind11/pybind11.h` |
98+------------------------------------+---------------------------+-------------------------------+
99| ``char32_t`` | UTF-32 character literal | :file:`pybind11/pybind11.h` |
100+------------------------------------+---------------------------+-------------------------------+
97| ``wchar_t`` | Wide character literal | :file:`pybind11/pybind11.h` |
98+------------------------------------+---------------------------+-------------------------------+
99| ``const char *`` | UTF-8 string literal | :file:`pybind11/pybind11.h` |
100+------------------------------------+---------------------------+-------------------------------+
101| ``wchar_t`` | Wide character literal | :file:`pybind11/pybind11.h` |
102+------------------------------------+---------------------------+-------------------------------+
103| ``const char *`` | UTF-8 string literal | :file:`pybind11/pybind11.h` |
104+------------------------------------+---------------------------+-------------------------------+
105| ``const char16_t *`` | UTF-16 string literal | :file:`pybind11/pybind11.h` |
106+------------------------------------+---------------------------+-------------------------------+
107| ``const char32_t *`` | UTF-32 string literal | :file:`pybind11/pybind11.h` |
108+------------------------------------+---------------------------+-------------------------------+
101| ``const wchar_t *`` | Wide string literal | :file:`pybind11/pybind11.h` |
102+------------------------------------+---------------------------+-------------------------------+
103| ``std::string`` | STL dynamic UTF-8 string | :file:`pybind11/pybind11.h` |
104+------------------------------------+---------------------------+-------------------------------+
109| ``const wchar_t *`` | Wide string literal | :file:`pybind11/pybind11.h` |
110+------------------------------------+---------------------------+-------------------------------+
111| ``std::string`` | STL dynamic UTF-8 string | :file:`pybind11/pybind11.h` |
112+------------------------------------+---------------------------+-------------------------------+
113| ``std::u16string`` | STL dynamic UTF-16 string | :file:`pybind11/pybind11.h` |
114+------------------------------------+---------------------------+-------------------------------+
115| ``std::u32string`` | STL dynamic UTF-32 string | :file:`pybind11/pybind11.h` |
116+------------------------------------+---------------------------+-------------------------------+
105| ``std::wstring`` | STL dynamic wide string | :file:`pybind11/pybind11.h` |
106+------------------------------------+---------------------------+-------------------------------+
107| ``std::pair<T1, T2>`` | Pair of two custom types | :file:`pybind11/pybind11.h` |
108+------------------------------------+---------------------------+-------------------------------+
109| ``std::tuple<...>`` | Arbitrary tuple of types | :file:`pybind11/pybind11.h` |
110+------------------------------------+---------------------------+-------------------------------+
111| ``std::reference_wrapper<...>`` | Reference type wrapper | :file:`pybind11/pybind11.h` |
112+------------------------------------+---------------------------+-------------------------------+

--- 34 unchanged lines hidden ---
117| ``std::wstring`` | STL dynamic wide string | :file:`pybind11/pybind11.h` |
118+------------------------------------+---------------------------+-------------------------------+
119| ``std::pair<T1, T2>`` | Pair of two custom types | :file:`pybind11/pybind11.h` |
120+------------------------------------+---------------------------+-------------------------------+
121| ``std::tuple<...>`` | Arbitrary tuple of types | :file:`pybind11/pybind11.h` |
122+------------------------------------+---------------------------+-------------------------------+
123| ``std::reference_wrapper<...>`` | Reference type wrapper | :file:`pybind11/pybind11.h` |
124+------------------------------------+---------------------------+-------------------------------+

--- 34 unchanged lines hidden ---