blob: eaa9ef93eb927c5d5f0228a8871c111eddc14200 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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);
}
|