my-emacs-d/elpa/yasnippet-20160924.2001/snippets/c++-mode/operator+=

10 lines
161 B
Plaintext
Raw Normal View History

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