diff options
Diffstat (limited to 'snippets/fundamental-mode/cppcpp')
-rw-r--r-- | snippets/fundamental-mode/cppcpp | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/snippets/fundamental-mode/cppcpp b/snippets/fundamental-mode/cppcpp new file mode 100644 index 0000000..eaa9ef9 --- /dev/null +++ b/snippets/fundamental-mode/cppcpp @@ -0,0 +1,28 @@ +# -*- mode: snippet -*- +# name: cppcpp +# key: cppcpp +# -- + +Name::Name(void) { + return ; +} + +Name::Name(std::string name) : _name(value) { + std::cout << "Name just appeared" << std::endl; + return ; +} + +Name::Name(Name const &src) { + *this = src; + return ; +} + +Name::~Name(void) { + std::cout << "Name was destroyed" << std::endl; + return ; +} + +Name & Name::operator=(Name const &rhs) { + this->field = rhs.getter(); + return (*this); +} |