Install yasnippet and vala-snippets packages
This commit is contained in:
11
elpa/yasnippet-20160924.2001/snippets/c++-mode/operator+
Normal file
11
elpa/yasnippet-20160924.2001/snippets/c++-mode/operator+
Normal file
@@ -0,0 +1,11 @@
|
||||
# -*- mode: snippet -*-
|
||||
# name: operator+
|
||||
# key: +
|
||||
# group: operator overloading
|
||||
# --
|
||||
${1:MyClass} $1::operator+(const $1 &other)
|
||||
{
|
||||
$1 result = *this;
|
||||
result += other;
|
||||
return result;
|
||||
}
|
Reference in New Issue
Block a user