summaryrefslogtreecommitdiffstats
path: root/snippets/c++-mode/noncopyable.yasnippet
diff options
context:
space:
mode:
Diffstat (limited to 'snippets/c++-mode/noncopyable.yasnippet')
-rw-r--r--snippets/c++-mode/noncopyable.yasnippet8
1 files changed, 8 insertions, 0 deletions
diff --git a/snippets/c++-mode/noncopyable.yasnippet b/snippets/c++-mode/noncopyable.yasnippet
new file mode 100644
index 0000000..5a77377
--- /dev/null
+++ b/snippets/c++-mode/noncopyable.yasnippet
@@ -0,0 +1,8 @@
+# -*- mode: snippet; require-final-newline: nil -*-
+# name: noncopyable
+# key: noncopyable
+# binding: direct-keybinding
+# --
+/* no copies */
+$1(const $1&) = delete;
+$1& operator=(const $1&) = delete; \ No newline at end of file