my-emacs-d/elpa/yasnippet-20161022.646/snippets/c++-mode/operator+=
2016-10-24 08:30:06 +02:00

10 lines
161 B
Plaintext

# -*- mode: snippet -*-
# name: operator+=
# key: +=
# group: operator overloading
# --
${1:MyClass}& $1::operator+=(${2:const $1 &rhs})
{
$0
return *this;
}