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

Method createObject

tests/test_smart_ptr.cpp:203–205  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

201class MyObject6 {
202public:
203 static const_only_shared_ptr<MyObject6> createObject(std::string value) {
204 return const_only_shared_ptr<MyObject6>(new MyObject6(std::move(value)));
205 }
206
207 const std::string &value() const { return value_; }
208

Callers

nothing calls this directly

Calls 1

moveFunction · 0.85

Tested by

no test coverage detected