Files
dotfiles/emacs/.emacs.d/snippets/c++-mode/operator+
TuDatTr 215bf58939 Trying out GNU stow
Signed-off-by: TuDatTr <tran.tuan-dat@mailbox.org>
2018-01-08 01:53:16 +01:00

11 lines
196 B
Plaintext

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