summaryrefslogtreecommitdiffstats
path: root/emacs.d/snippets/text-mode/cc-mode/c++-mode/class
diff options
context:
space:
mode:
Diffstat (limited to 'emacs.d/snippets/text-mode/cc-mode/c++-mode/class')
-rw-r--r--emacs.d/snippets/text-mode/cc-mode/c++-mode/class8
1 files changed, 8 insertions, 0 deletions
diff --git a/emacs.d/snippets/text-mode/cc-mode/c++-mode/class b/emacs.d/snippets/text-mode/cc-mode/c++-mode/class
new file mode 100644
index 0000000..820fc6c
--- /dev/null
+++ b/emacs.d/snippets/text-mode/cc-mode/c++-mode/class
@@ -0,0 +1,8 @@
+#name : class ... { ... }
+# --
+class ${1:Name}
+{
+public:
+ ${1:$(yas/substr text "[^: ]*")}($2);
+ virtual ~${1:$(yas/substr text "[^: ]*")}();
+}; \ No newline at end of file