1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-12-18 15:00:26 +00:00

hprint:: print template for sets

This commit is contained in:
Zeno Rogue 2022-07-17 12:46:14 +02:00
parent 5c302a4c52
commit 2f7a6194a6

View File

@ -230,6 +230,7 @@ template<class T, size_t X> void print(hstream& hs, const array<T, X>& a) { prin
template<class T> void print(hstream& hs, const vector<T>& a) { print(hs, "("); comma_printer c(hs); for(const T& t: a) c(t); print(hs, ")"); }
template<class T, class U> void print(hstream& hs, const map<T,U>& a) { print(hs, "("); comma_printer c(hs); for(auto& t: a) c(t); print(hs, ")"); }
template<class T> void print(hstream& hs, const set<T>& a) { print(hs, "("); comma_printer c(hs); for(auto& t: a) c(t); print(hs, ")"); }
template<class T> string separated(string separator, const vector<T>& a) {
shstream ss;