Skip to content

Commit 696abfb

Browse files
committed
pragma once in mutant stack header
1 parent 52a49cb commit 696abfb

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

cpp08/ex02/include/MutantStack.hpp

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#pragma once
2+
13
#include <deque>
24
#include <stack>
35

@@ -7,16 +9,16 @@ class MutantStack : public std::stack<T, C>
79
public:
810
typedef typename std::stack<T, C>::container_type::iterator iterator;
911

10-
MutantStack<T, C> () : std::stack<T, C> (){};
11-
MutantStack<T, C> (const MutantStack<T, C> &rhs) : std::stack<T, C> (rhs){};
12-
MutantStack<T, C> &
12+
MutantStack () : std::stack<T, C> (){};
13+
MutantStack (const MutantStack<T, C> &rhs) : std::stack<T, C> (rhs){};
14+
MutantStack &
1315
operator= (const MutantStack<T, C> &rhs)
1416
{
1517
if (this != &rhs)
1618
this->c.operator= (rhs.c);
1719
return (*this);
1820
};
19-
~MutantStack<T, C> (){};
21+
~MutantStack (){};
2022

2123
iterator
2224
begin ()

0 commit comments

Comments
 (0)