Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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_ptr
Class · 0.45
reset
Method · 0.45
swap
Function · 0.45
Calls
1
swap
Function · 0.70
Tested by
no test coverage detected