MCPcopy Create free account
hub / github.com/davisking/dlib / swap

Method swap

dlib/smart_pointers/shared_ptr.h:387–391  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

385 ) const { return get() != 0; }
386
387 void swap(shared_ptr& b)
388 {
389 std::swap(data, b.data);
390 std::swap(shared_node, b.shared_node);
391 }
392
393 template <typename D>
394 D* _get_deleter(

Callers 3

shared_ptrClass · 0.45
resetMethod · 0.45
swapFunction · 0.45

Calls 1

swapFunction · 0.70

Tested by

no test coverage detected