We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
empty
1 parent 7c442b8 commit 7ae10a6Copy full SHA for 7ae10a6
data_structures/stack_using_array.cpp
@@ -1,7 +1,7 @@
1
-#include <cassert> /// For std::assert
2
-#include <iostream> /// For std::cout
3
-#include <memory> /// For std::unique_ptr
4
-#include <stdexcept> /// For std::out_of_range
+#include <cassert> /// For std::assert
+#include <iostream> /// For std::cout
+#include <memory> /// For std::unique_ptr
+#include <stdexcept> /// For std::out_of_range
5
6
/**
7
* @namespace
@@ -36,7 +36,6 @@ class Stack {
36
37
38
* @brief Checks if the stack is empty
39
- *
40
* @return true if the stack is empty, false otherwise
41
*/
42
bool empty() const { return stackIndex == -1; }
0 commit comments