-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTemplate.cpp
More file actions
37 lines (32 loc) · 1.4 KB
/
Template.cpp
File metadata and controls
37 lines (32 loc) · 1.4 KB
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
29
30
31
32
33
34
35
36
37
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* Template.cpp :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: rburgsta <rburgsta@student.42.de> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/05/06 23:36:22 by rburgsta #+# #+# */
/* Updated: 2023/05/06 23:36:22 by rburgsta ### ########.fr */
/* */
/* ************************************************************************** */
#include "Template.hpp"
Template::Template()
{
std::cout << "Template default constructor called" << std::endl;
}
Template::Template(Template const& rhs)
{
std::cout << "Template copy constructor called" << std::endl;
*this = rhs;
}
Template& Template::operator=(Template const& rhs)
{
std::cout << "Template copy assignment operator called" << std::endl;
if (this == &rhs)
return (*this);
return (*this);
}
Template::~Template()
{
std::cout << "Template destructor called" << std::endl;
}