Skip to content

Commit dbf6add

Browse files
Update vector-print.md
1 parent bd9cdc8 commit dbf6add

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

snippets/cpp/debuging/vector-print.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ std::ostream& operator<<(std::ostream& os, const std::vector<T>& vec) {
2222
return os; // Return the stream
2323
}
2424

25+
// Usage:
2526
std::vector<int> numbers = {1, 2, 3, 4, 5};
2627
std::cout << numbers << std::endl; // Outputs: [1, 2, 3, 4, 5]
2728

0 commit comments

Comments
 (0)