add solution of lab 5

This commit is contained in:
2025-02-26 12:16:28 -05:00
parent 05c92a01ae
commit c20ce7c2c3
8 changed files with 146 additions and 29 deletions

View File

@@ -28,12 +28,8 @@ int main() {
// clear out the list
a.clear();
/*
assert (a.size() == 0);
*/
assert (a.size() == 0);
/*
// simple tests of push_front, pop_front, and pop_back
a.push_front(5);
a.push_back(7);
@@ -66,7 +62,6 @@ int main() {
a.pop_front();
assert (a.size() == 0);
assert (a.begin() == a.end());
*/
return 0;
}