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

Class IntStruct

tests/test_thread.cpp:26–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24namespace {
25
26struct IntStruct {
27 explicit IntStruct(int v) : value(v) {};
28 ~IntStruct() { value = -value; }
29 IntStruct(const IntStruct &) = default;
30 IntStruct &operator=(const IntStruct &) = default;
31
32 int value;
33};
34
35struct EmptyStruct {};
36EmptyStruct SharedInstance;

Callers 1

TEST_SUBMODULEFunction · 0.85

Calls

no outgoing calls

Tested by 1

TEST_SUBMODULEFunction · 0.68