Skip to content

Instantly share code, notes, and snippets.

@superdump
Created July 27, 2017 07:38
Show Gist options
  • Save superdump/d75c9ceae13625f26acb8770ac9a25aa to your computer and use it in GitHub Desktop.
Save superdump/d75c9ceae13625f26acb8770ac9a25aa to your computer and use it in GitHub Desktop.
template <class T>
class WeightedGraph {
public:
friend std::ostream& operator<<(std::ostream& out,
const WeightedGraph<T>& g);
...
};
template <class T>
std::ostream& operator<<(std::ostream& out, const WeightedGraph<T>& g) {
...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment