MCPcopy Create free account
hub / github.com/pybind/pybind11 / values

Method values

tests/constructor_stats.h:153–160  ·  view source on GitHub ↗

Move out stored values

Source from the content-addressed store, hash-verified

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) {

Callers 15

test_reference_internalFunction · 0.80
test_constructorsFunction · 0.80
test_init_factory_basicFunction · 0.80
test_init_factory_aliasFunction · 0.80
test_init_factory_dualFunction · 0.80
test_from_pythonFunction · 0.80
test_to_pythonFunction · 0.80

Calls 3

castFunction · 0.70
appendMethod · 0.45
clearMethod · 0.45

Tested by 15

test_reference_internalFunction · 0.64
test_constructorsFunction · 0.64
test_init_factory_basicFunction · 0.64
test_init_factory_aliasFunction · 0.64
test_init_factory_dualFunction · 0.64
test_from_pythonFunction · 0.64
test_to_pythonFunction · 0.64