Pybind11 automatically bridges `std::vector`, `std::list`, `std::array` to Python lists; `std::set`, `std::unordered_set` to Python sets; and `std::map`, `std::unordered_map` to Python dictionaries, by including the `pybind11/stl.h` header.
Open the full topic