Lines Matching refs:array
71 m.def("cast_array", []() { return std::array<int, 2> {{1 , 2}}; });
72 m.def("load_array", [](const std::array<int, 2> &a) { return a[0] == 1 && a[1] == 2; });
94 m.def("cast_rv_array", []() { return std::array<RValueCaster, 3>(); });
100 std::vector<std::array<std::list<std::unordered_map<std::string, RValueCaster>>, 2>> v;
101 v.emplace_back(); // add an array
102 v.back()[0].emplace_back(); // add a map to the array
105 v.back()[1].emplace_back(); // add a map to the array
109 static std::array<RValueCaster, 2> lva;
111 static std::unordered_map<std::string, std::vector<std::list<std::array<RValueCaster, 2>>>> lvn;
113 lvn["a"].back().emplace_back(); // add an array
115 lvn["a"].back().emplace_back(); // add an array
117 lvn["b"].back().emplace_back(); // add an array
118 lvn["b"].back().emplace_back(); // add another array
271 m.def("array_cast_sequence", [](std::array<int, 3> x) { return x; });