diff --git a/stack.cpp b/stack.cpp index db12233..a6103bb 100644 --- a/stack.cpp +++ b/stack.cpp @@ -52,14 +52,6 @@ inline auto stack::push(T const & value) -> void { ++count_; } -template -auto stack::print() -> void { - for (size_t i = 0; i < count_; ++i) { - std::cout << array_[i] << " "; - } - std::cout << std::endl; -} - template inline auto stack::operator=(stack const & rhs) -> stack & { if (this != &rhs) { @@ -102,4 +94,4 @@ auto stack::swap(stack & rhs) -> void { std::swap(rhs.array_, array_); std::swap(rhs.count_, count_); } -#endif // STACK_CPP \ No newline at end of file +#endif // STACK_CPP