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

Class E_nc

tests/test_stl_binders.cpp:34–43  ·  view source on GitHub ↗

Issue #487: binding std::vector with E non-copyable

Source from the content-addressed store, hash-verified

32
33/// Issue #487: binding std::vector<E> with E non-copyable
34class E_nc {
35public:
36 explicit E_nc(int i) : value{i} {}
37 E_nc(const E_nc &) = delete;
38 E_nc &operator=(const E_nc &) = delete;
39 E_nc(E_nc &&) = default;
40 E_nc &operator=(E_nc &&) = default;
41
42 int value;
43};
44
45template <class Container>
46Container *one_to_n(int n) {

Callers 2

times_tenFunction · 0.85
times_hundredFunction · 0.85

Calls

no outgoing calls

Tested by 2

times_tenFunction · 0.68
times_hundredFunction · 0.68