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

Method NonCopyable

tests/test_virtual_functions.cpp:102–102  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

100class NonCopyable {
101public:
102 NonCopyable(int a, int b) : value{new int(a * b)} { print_created(this, a, b); }
103 NonCopyable(NonCopyable &&o) noexcept : value{std::move(o.value)} { print_move_created(this); }
104 NonCopyable(const NonCopyable &) = delete;
105 NonCopyable() = delete;

Callers 2

get_noncopyableMethod · 0.80
get_noncopyableMethod · 0.80

Calls 3

print_createdFunction · 0.85
moveFunction · 0.85
print_move_createdFunction · 0.85

Tested by

no test coverage detected