summaryrefslogtreecommitdiff
path: root/graphs/cpp/ref_swap/ref_swap.hh
diff options
context:
space:
mode:
Diffstat (limited to 'graphs/cpp/ref_swap/ref_swap.hh')
-rw-r--r--graphs/cpp/ref_swap/ref_swap.hh5
1 files changed, 5 insertions, 0 deletions
diff --git a/graphs/cpp/ref_swap/ref_swap.hh b/graphs/cpp/ref_swap/ref_swap.hh
new file mode 100644
index 0000000..1f194b3
--- /dev/null
+++ b/graphs/cpp/ref_swap/ref_swap.hh
@@ -0,0 +1,5 @@
+#pragma once
+
+void ref_swap(int& a, int& b);
+
+void ptr_swap(int* a, int* b);