You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
#include <memory> |
|
|
|
void copy_ptr(std::shared_ptr<int>& a, std::shared_ptr<int> const& b) { |
|
a = b; |
|
} |
|
|
|
void move_ptr(std::shared_ptr<int>& a, std::shared_ptr<int>& b) { |
|
a = std::move(b); |
|
}
|
|
|