Move out stored values
| 151 | |
| 152 | // Move out stored values |
| 153 | py::list values() { |
| 154 | py::list l; |
| 155 | for (const auto &v : _values) { |
| 156 | l.append(py::cast(v)); |
| 157 | } |
| 158 | _values.clear(); |
| 159 | return l; |
| 160 | } |
| 161 | |
| 162 | // Gets constructor stats from a C++ type index |
| 163 | static ConstructorStats &get(std::type_index type) { |