-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathoperators.h
More file actions
25 lines (19 loc) · 866 Bytes
/
operators.h
File metadata and controls
25 lines (19 loc) · 866 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
// ECE 4050 / CSC 5050 - Project 3
// Nathan Lucas
/* Stream insertion operator overloads
Example usage:
int n = 10;
auto vec = random_vector(n); // Create vector of unsorted data
std::cout << vec << "\n"; // Output unsorted data to console
SortMetrics metrics;
bubble_sort(vec, metrics); // Sort data using bubble sort
std::cout << vec << "\n"; // Output sorted data to console
*/
#pragma once
#include <ostream> // std::ostream
#include <vector> // std::vector
#include <list> // std::list
#include <set> // std::set
std::ostream& operator<<(std::ostream& os, const std::vector<int>& vec);
std::ostream& operator<<(std::ostream& os, const std::list<int>& list);
std::ostream& operator<<(std::ostream& os, const std::set<int>& set);