Skip to content

Commit

Permalink
Update vectorFunctions.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
PancernyJez authored Jul 16, 2024
1 parent daec947 commit 9861cb4
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions homework/vector-of-shared-ptrs/vectorFunctions.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
#include <vector>
#include <memory>

std::vector<std::shared_ptr<int>> generate(int count) {
std::vector<std::shared_ptr<int>> vec;
for (int i = 0; i < count; i++) {
Expand Down Expand Up @@ -28,3 +31,7 @@ std::vector<std::shared_ptr<int>> generate(int count) {
sub10(x);
}
}




0 comments on commit 9861cb4

Please sign in to comment.