Lines Matching refs:std

26 std::ostream & operator<<(std::ostream &s, El const&v) {
31 /// Issue #487: binding std::vector<E> with E non-copyable
59 py::bind_vector<std::vector<unsigned int>>(m, "VectorInt", py::buffer_protocol());
64 py::bind_vector<std::vector<El>>(m, "VectorEl");
65 py::bind_vector<std::vector<std::vector<El>>>(m, "VectorVectorEl");
68 py::bind_map<std::map<std::string, double>>(m, "MapStringDouble");
69 py::bind_map<std::unordered_map<std::string, double>>(m, "UnorderedMapStringDouble");
72 py::bind_map<std::map<std::string, double const>>(m, "MapStringDoubleConst");
73 py::bind_map<std::unordered_map<std::string, double const>>(m, "UnorderedMapStringDoubleConst");
80 py::bind_vector<std::vector<E_nc>>(m, "VectorENC");
81 m.def("get_vnc", &one_to_n<std::vector<E_nc>>, py::return_value_policy::reference);
82 py::bind_vector<std::deque<E_nc>>(m, "DequeENC");
83 m.def("get_dnc", &one_to_n<std::deque<E_nc>>, py::return_value_policy::reference);
84 py::bind_map<std::map<int, E_nc>>(m, "MapENC");
85 m.def("get_mnc", &times_ten<std::map<int, E_nc>>, py::return_value_policy::reference);
86 py::bind_map<std::unordered_map<int, E_nc>>(m, "UmapENC");
87 m.def("get_umnc", &times_ten<std::unordered_map<int, E_nc>>, py::return_value_policy::reference);
90 py::bind_vector<std::vector<unsigned char>>(m, "VectorUChar", py::buffer_protocol());
94 py::bind_vector<std::vector<VUndeclStruct>>(m, "VectorUndeclStruct", py::buffer_protocol());
105 py::bind_vector<std::vector<VStruct>>(m, "VectorStruct", py::buffer_protocol());
106 m.def("get_vectorstruct", [] {return std::vector<VStruct> {{0, 5, 3.0, 1}, {1, 30, -1e4, 0}};});