Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Graph& operator=(const Graph& g) {
- Graph tmp(g);
- swap(tmp);
- return *this;
- }
- void swap(Graph& g) {
- ::swap(_n_nodes, g._n_nodes);
- ::swap(_m, g._m);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement