Skip to content

Commit

Permalink
Task 3
Browse files Browse the repository at this point in the history
Deleted print() func. Sorry for this
  • Loading branch information
CatInCosmicSpace authored Sep 15, 2016
1 parent ec5a0fe commit 5e85b33
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions stack.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,14 +52,6 @@ inline auto stack<T>::push(T const & value) -> void {
++count_;
}

template<typename T>
auto stack<T>::print() -> void {
for (size_t i = 0; i < count_; ++i) {
std::cout << array_[i] << " ";
}
std::cout << std::endl;
}

template<typename T>
inline auto stack<T>::operator=(stack const & rhs) -> stack & {
if (this != &rhs) {
Expand Down Expand Up @@ -102,4 +94,4 @@ auto stack<T>::swap(stack & rhs) -> void {
std::swap(rhs.array_, array_);
std::swap(rhs.count_, count_);
}
#endif // STACK_CPP
#endif // STACK_CPP

0 comments on commit 5e85b33

Please sign in to comment.